z=#(read)y=#format #(y #t(y"Gray code n=~s~~{ ~~~s,'0b~~}"z z)(map(lambda(x)(logxor(ash x -1)x))(iota(ash 1 z))))