N = gets.chop.to_i print "1 " for i in 1..N-1 if i == N - 1 puts "3" else print "3 " end end