function Main(s){
  const n = parseInt(s);
  var a = [];
  var b = 0;
  var j = 3;
  for(var i = 0; i < (n + 1 >> 2) * 2; i++){
    while(j % 3 !== 0 && j % 5 !== 0){
      j += 2;
    }
    if(j > 30000) break;
    a[i] = j;
    b += j;
    j += 2;
  }
  j = 1;
  for(; i < n - 1; i++){
    a[i] = j++ * 2;
    b += a[i];
  }
  a[n-1] = Math.ceil(a[n-2] / 30) * 30 - b % 30 + 30;
  console.log(a.join(" "));
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));