import string moji = string.ascii_uppercase S = input() for i in range(len(S)): tmp = (moji.index(S[i]) - i - 1) % 26 print(moji[tmp], end='')