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