import sys sys.setrecursionlimit(10 ** 8) input = sys.stdin.readline def main(): S = input().strip() ans = [] for i, s in enumerate(S): if ord(s) - ord('A') >= (i + 1) % 26: ans.append(chr(ord(s) - (i + 1) % 26)) else: ans.append(chr(ord('Z') + 1 - ((i + 1) - (ord(s) - ord('A'))) % 26)) print("".join(ans)) if __name__ == '__main__': main()