#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, n, x = (int)(1e7 + 1);
  cin >> n;
  vector<bool> p(x, true);
  p[0] = p[1] = false;
  int c = 0;
  for (i = 2; i <= x; i++) {
    if (p[i]) {
      c++;
      cout << i << " ";
      if (c == n) break;
      for (j = i; (long long)i * j <= x; j++) {
        p[i * j] = false;
      }
    }
  }
  cout << endl;
  return 0;
}
