a_l=[chr(i) for i in range(65, 65+26)]*40 S=list(input()) for i in range(len(S)): S[i]=a_l[a_l.index(S[i])-i-1] print(''.join(S))