# 懒得记也记不住ASCII换码函数了,直接字典映射 hax = { '0':'0','1':'1','2':'2','3':'3','4':'4','5':'5','6':'6', '7':'7','8':'8','9':'9','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','A':'b','B':'c','C':'d','D':'e','E':'f','F':'g', 'G':'h','H':'i','I':'j','J':'k','K':'l','L':'m','M':'n', 'N':'o','O':'p','P':'q','Q':'r','R':'s','S':'t','T':'u', 'U':'v','V':'w','W':'x','X':'y','Y':'z','Z':'a' } a = input() res=[] for i in a : res.append(hax[i]) print("".join(res))