S = input() N = len(S) T = '' for i in range(N): P = ord(S[i]) - 65 P -= i + 1 P %= 26 T += chr(P + 65) print(T)