stoneDict = {} #Dictionaries
line = input().split()
for x in line: #放入Dictionaries並累計
if x not in stoneDict:
stoneDict[x] = 1
else:
stoneDict[x] += 1
然後 印出 數量不是3倍數的石頭編號