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