T = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' S = input() Ans = '' for i, s in enumerate(S): x = (T.index(s) - (i+1)) % 26 Ans += T[x] print(Ans)