a=map(ord,raw_input()) h=0 for x in a:h^=x x=h>>4 s='' for c in a+[h%16<<4^h]:x=x<<8|c^h;s+=chr(x>>4);x&=15 print s