alfa = [chr(i) for i in range(65, 91)] ans = [] s = input() for i in range(len(s)): inx = alfa.index(s[i]) ans.append(alfa[inx - (i+1)%26]) print("".join(ans))