def get_ans(s):
low_match,ans={'a':'2','b':'2','c':'2',
'd':'3','e':'3','f':'3',
'g':'4','h':'4','i':'4',
'j':'5','k':'5','l':'5',
'm':'6','n':'6','o':'6',
'p':'7','q':'7','r':'7','s':'7',
't':'8','u':'8','v':'8',
'w':'9','x':'9','y':'9','z':'9'},''
for i in s:
if i.islower():
ans+=low_match[i]
elif i.isupper() and i != 'Z':
ans+=(chr(ord(i.lower()) + 1))
elif i == 'Z':
ans+='a'
else: ans+=i
return ans
if __name__=='__main__':
import sys
lines = []
while True:
line = sys.stdin.readline().strip()
if line == "":
break
lines.append(line)
for item in lines:
print(get_ans(item))