dict = {'abc' :2,'def' : 3,'ghi' : 4,'jkl' : 5,'mno' : 6,'pqrs' : 7,'tuv' : 8,'wxyz' : 9} c = input().lower() out = '' for i in range(len(c)): for key,value in dict.items(): if c[i] in key: out += str(value) print(out)