main=readLn>>=s s n=putStrLn.unwords.map show$1:replicate(n-1)3