let n=read_int();;for i=1to n do Printf.printf"1%s%c "(String.make(n-2+1/n)"01 ".[1/i+i/n])"1 ".[1/n]done