#include <bits/stdc++.h>
using namespace std;
vector<int> primes;
bool x[10010000];
void sieve() {
  for (int i = 2; i <= 10000000; i++) {
    if (x[i]) continue;
    for (int c = i + i; c <= 10000000; c += i) x[c] = 1;
    primes.push_back(i);
  }
  return;
}
int main() {
  sieve();
  int n;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) printf("%d ", primes[i]);
}
