S = input() result = '' for i in range(len(S)): result += chr(ord('A')+(ord(S[i])-ord('A')-(i+1))%26) print (result)