L = [chr(i) for i in range(ord('A'), ord('Z')+1)] * (1024//26+1) S = input() n = len(S) ans = [] for i in range(n): I = L.index(S[i]) ans.append(L[I-i-1]) print(''.join(ans))