S=input() ans='' for i, c in enumerate(S): ans+=chr((ord(c)-ord('A')-(i+1))%26+ord('A')) print(ans)