s=input() d='ABCDEFGHIJKLMNOPQRSTUVWXYZ' for i,v in enumerate(s): print(d[(d.index(v)-i-1)%26],end='')