N = gets.to_i puts Array.new(N,3).tap{|it| it[0] = 1 } * ' '