n = gets.to_i ans = [] t = 312456 n.times do |i| if i == n - 1 ans << t - 2 else ans << 3 t -= 3 end end puts ans.join(" ")