1(Gray code n=)print 1([).runstdin def 1[bitshift[={255 add dup 2 idiv xor 2 9 string cvrs 9[sub[getinterval =}for