def Decrypto(i, s): ans = "" ans += chr(ord("A") + (ord(s) - ord("A") - i) % 26) return ans S = input() print(*list(Decrypto(i + 1, s) for i, s in enumerate(S)), sep="")