moji=list("ABCDEFGHIJKLMNOPQRSTUVWXYZ") data=input() for i in range(len(data)): n = moji.index(data[i])-i-1 while n < 0: n += 26 print(moji[n],end="")