o=map(ord,raw_input()) h=0 for x in o:h^=x u=h>>4;r="" for e in o+[h<<4^h]:f=e^h;r+=chr(f>>4&15|u<<4);u=f&15 print r