in_strs = input().strip()
out_strs = ''
zm = ['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']
jj = ['abc', 'def', 'ghi', 'jkl', 'mno', 'pqrs', 'tuv', 'wxyz']
for i in in_strs:
if i.isdigit():
out_strs += i
elif i.islower():
for j in jj:
if i in j:
out_strs += str(int(jj.index(j)) + 2)
break
elif i.isupper():
low = i.lower()
if low == 'z':
out_strs += 'a'
else:
out_strs += zm[zm.index(low) + 1]
print(out_strs)