import Data.Bits main=mapM print[xor(0%x)x|x<-[0..254::Int]] n%0=n;n%x=(n*2+x.&.1)%div x 2