std = [chr(x) for x in range(65,91)] s = list(input()) de = [] for i,y in enumerate(s): #print(i,y,std.index(y)) de.append(std[ (std.index(y) - (i +1) ) % 26]) print("".join(de))