ans = [] for i, j in enumerate(input()): p = (ord(j) - 65 - (i + 1) + 26 ** 5) % 26 ans.append(chr(p + 65)) print(*ans, sep='')