while True:
try:
pw = input()
new_pw = ''
z = ['abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz']
for i in pw:
if i.isalpha():
if i.isupper():
if i == 'Z':
new_pw += 'a'
else:
new_pw += chr(ord(i.lower())+1)
else:
for j in z:
if i in j:
new_pw += str(z.index(j) + 2)
else:
new_pw += i
print(new_pw)
except:
break
try:
pw = input()
new_pw = ''
z = ['abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz']
for i in pw:
if i.isalpha():
if i.isupper():
if i == 'Z':
new_pw += 'a'
else:
new_pw += chr(ord(i.lower())+1)
else:
for j in z:
if i in j:
new_pw += str(z.index(j) + 2)
else:
new_pw += i
print(new_pw)
except:
break