var reader = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

reader.on('line', function(line) {
  var numbers = []
  var line = parseInt(line)
  for (var i = 2; i < 55555; i++) {
    if (primeNumber(i)) {
      numbers.push(i)
      if (numbers.length === line) {
        console.log(numbers.join(' '))
      }
    }
  }
});

function primeNumber (num) {
  if(num === 2) {
    return true;
  } 
  else {
    for(i = 2; i < num; i++) {
      if(num % i === 0) {
        return false;
        break;
      }
      if(i + 1 === num) {
        return true;
      }
    }
  }
}