local n = io.read("*n")
io.write("11")
local cnt = 1
local ofst = 21

local function isprime(x)
  local a = math.ceil(math.sqrt(x))
  for i = 2, a do
    if(x % i == 0) then return false end
  end
  return true
end

local t = {}
while(cnt < n) do
  if(isprime(ofst)) then
    cnt = cnt + 1
    io.write(" " .. ofst)
  end
  ofst = ofst + 10
end
io.write("\n")
