de='ABCDEFGHIJKLMNOPQRSTUVWXYZ' a='' for i,x in enumerate(input()):a+=de[de.index(x)-i-1] print(a)