import Bits f=fromEnum main=interact$unlines.scanl1(zipWith$(toEnum.).(.f).xor.f).lines