while True: try: s = input() ms = '' ld = {'abc':'2', 'def':'3', 'ghi':'4', 'jkl':'5', 'mno':'6', 'pqrs':'7', 'tuv':'8', 'wxyz':'9'} for i in s: if i.isdigit(): ms += i elif i.isupper(): if i is 'Z': i = 'a' else: i = chr(ord(i.lower())+1) ms += i elif i.islower(): for key in ld.keys(): if i in key: i = ld[key] ms += i print(ms) except: break