#include <bits/stdc++.h>
using namespace std;
int main() {
  vector<bool> p(2000001, true);
  p[0] = p[1] = false;
  for (int i = 2; i * i <= 2000000; i++) {
    if (!p[i]) {
      continue;
    }
    for (int j = i * i; j <= 2000000; j += i) {
      p[j] = false;
    }
  }
  int n;
  cin >> n;
  int i = 0;
  while (n > 0) {
    while (!p[i]) {
      i++;
    }
    cout << i << " ";
    i++;
    n--;
  }
  cout << endl;
  return 0;
}
