l = input() a = [] for x in range(0,len(l)): tmp = ord(l[x]) - ord('A') tmp = (tmp - x - 1) % 26 a.append(chr(tmp + ord('A'))) print("".join(a))