s=input() ans="" for i in range(len(s)): ans+=chr(ord("A")+( ord(s[i])-ord("A")-(i+1) )%26 ) print(ans)