n=gets.to_i xs=(1..n).to_a n.times{ puts xs.join(" ") xs<