import sys

data=sys.stdin.readline()
d={"1":1,"abc":2,"def":3,"ghi":4,"jkl":5,"mno":6,"pqrs":7,"tuv":8,"wxyz":9,"0":0}
def trans(s):
    if s=="Z":
        return "a"
    val=ord(s)+32+1
    c=chr(val)
    return c

def trans2(s,d):
    key_list=d.keys()
    for item in key_list:
        if s in item:
            return d[item]



l=list(data)

m=""
for i in range(len(l)):
    if l[i].isupper():
        l[i]=trans(l[i])
    elif l[i].islower():
        l[i]=str(trans2(l[i],d))
    m=m+l[i]
print(m)

#注意字符串函数ord() chr()函数的使用