I = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' S = input() n = len(S) for i in range(n): print(I[(I.index(S[i]) - i - 1) % 26], end='') print()