s=input() c="ABCDEFGHIJKLMNOPQRSTUVWXYZ" a="" for i in range(len(s)): a+=c[(c.index(s[i])-i-1)%26] print(a)