S = input() T = [] for i, s in enumerate(S): c = ord(s)-ord('A')-(i+1) c%=26 T.append(chr(c+ord('A'))) print("".join(T))