x=id(0)%9*10+8 print''.join('%02x'%(x^ord(c))for c in raw_input()).join('%x'%x).decode('hex')