S = input() ans = '' for i in range(len(S)): I = ord(S[i]) ans += chr(((I-65)-(i+1)) % 26 + ord('A')) print(ans)