li = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
s = input()
t = ""
for i, c in enumerate(s):
    t += li[(ord(c) - ord('A') + (26 - i - 1)) % 26]
print(t)