S=raw_input() T="" for i in range(len(S)): T+=chr((((ord(S[i])-ord('A'))+1024*26)-(i+1))%26+ord('A')) print T