S = input() ans = [] for i, c in enumerate(S, 1): d = ord(c) - ord('A') x = (d - i) % 26 ans.append(chr(x + ord('A'))) print(*ans, sep='')