for i, c in enumerate(list(input())): cc = (ord(c) - 65 - i - 1) % 26 print(chr(cc + 65), end="")