S = input() ans = "" for i in range(len(S)): ans += chr((ord(S[i]) - ord("A") - i - 1) % 26 + ord("A")) print(ans)