#include <bits/stdc++.h>
using namespace std;
int n, m, t[10000010], ans[10], a, b, x, y;
string ch;
void prim() {
  for (int i = 2; i < 10000000; i++) {
    if (t[i] == 0 && n > 0) {
      cout << i << " ";
      n--;
      for (int j = i * 2; j <= 10000000; j += i) t[j] = 1;
    }
  }
}
int main() {
  cin >> n;
  prim();
}
