s=input() abc=[*'ABCDEFGHIJKLMNOPQRSTUVWXYZ'] for i in range(len(s)): n=abc.index(s[i])-(i+1) while n<0: n+=len(abc) print(abc[n],end='')