S = list(input()) for i in range(len(S)): S[i] = chr((ord(S[i])-ord("A")-(i+1))%26+ord("A")) print("".join(S))