n=0 for c in input():n=n<<8|ord(c) while 1:print n;n^=2**n.bit_length()-n/n