s=list(input()) al="ABCDEFGHIJKLMNOPQRSTUVWXYZ" Al=list(al) ans="" for i in range(len(s)): x=Al.index(s[i]) y=(x-i-1)%26 ans+=Al[y] print(ans)