S = [str(x) for x in input()] E = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" F = "" for n in range(len(S)): m = n % 26 F += E[E.index(S[n])-m-1] print(F)