s = input() a = [chr(ord('A') + i) for i in range(26)] for i ,c in enumerate(s, start=1): n = (a.index(c) - i) % 26 print(a[n],end="") print()