for x in range(4,10):
     print range(3,x+1,2)+[1]+range(4,x+1,2)+[2]
     