S = input() M = [chr(i) for i in range(65, 91)] for i in range(len(S)): print(M[(ord(S[i])-i-66)%26], end = '') print()