main=do n<-readLn;mapM(putStrLn.(\x->drop([4,4,3,0]!!x)$(' ':)$[1..n]>>" "++" #"!!x:"#").abs)[-3..3]