n = gets.to_i
prime = [2]
i = 3
flag = true
while prime.length < n do
  prime.each do |p|
    flag = true if i % p == 0
  end
  if flag then 
    prime.push(i)
    flag = false
  end
  i += 1
end

prime.map {|p| puts p }