S=str(input()) s="" Q=("ABCDEFGHIJKLMNOPQRSTUVWXYZ") for i in range(0,len(S)): for j in range(0,len(Q)): if S[i]==Q[j]: s+=Q[(j-(i+1))%26] print(s)