n#[]=[] n#l=take n l:(n+1)#(drop n l) main=interact(\n->unlines$map(unwords.map show)$1#[1..read n])