while True:
try:
list1 = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
list2 = ['b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a']
list3 = [2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,2]
num = input()
for i in num:
if i in list1:
j = list1.index(i)
print(list2[j], end='')
elif i in list2:
j = list2.index(i)
print(list3[j], end='')
else:
print(i,end='')
except:
break
try:
list1 = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
list2 = ['b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','a']
list3 = [2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9,2]
num = input()
for i in num:
if i in list1:
j = list1.index(i)
print(list2[j], end='')
elif i in list2:
j = list2.index(i)
print(list3[j], end='')
else:
print(i,end='')
except:
break