a=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") s=list(input()) ans="" for i in range(len(s)): ind=a.index(s[i])-i-1 while ind<0: ind+=26 ans+=a[ind] print(ans)