color = ["black","brown","red","orange","yellow","green","blue","violet","grey","white"]
colorindex = [0,0,0]
for l in range(3):
colorindex[l] = color.index(input())
print((colorindex[0]*10+colorindex[1])*(10**colorindex[2]))
입력
yellow
violet
red
출력
4700