function Main(s) {
  s = +s;
  var m = [2];
  var i = 7;
  while(m.length < s){
    if(primecheck(i)) m.push(i);
    i += 5;
  }
  console.log(m.join(" "));
}
function primecheck(n){
  if(n<4)return 1;
  if(n % 2 === 0)return;
  if(n % 3 === 0)return;
  const m = Math.sqrt(n);
  for(i = 5; i <= m; i += 6){
    if(n % i === 0)return;
    if(n % (i+2) === 0)return;
  }
  return 1;
}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));