S = "".join(chr(i) for i in range(ord('A'),ord('A')+26)) s = input() print("".join(S[(S.index(c) - (i + 1)) % 26] for i,c in enumerate(s)))