C=input() L="ABCDEFGHIJKLMNOPQRSTUVWXYZ" A="" for i in range(len(C)): A+=L[(L.find(C[i])-i-1) % 26] print(A)