#include <bits/stdc++.h>
using namespace std;
bool P[10000005];
void cribaEratostenes() {
  memset(P, true, sizeof(P));
  P[0] = 0;
  P[1] = 0;
  for (long long i = 2; i <= 10000005; i++) {
    if (P[i]) {
      for (long long j = i * i; j <= 10000005; j += i) {
        P[j] = false;
      }
    }
  }
}
int main(int argc, char const *argv[]) {
  cribaEratostenes();
  long long n;
  cin >> n;
  long long k = 0;
  for (long long i = k; i < 10000005 && k != n; i++) {
    if (P[i] == true) {
      cout << i << " ";
      k++;
    }
  }
  cout << endl;
  return 0;
}
