#include <bits/stdc++.h>
using namespace std;
vector<int> ans(200000);
void precalc(int n) {
  bool prime[n + 1];
  int idx = 0;
  memset(prime, true, sizeof(prime));
  prime[0] = false;
  prime[1] = false;
  for (int i = 2; i * i <= n; i++) {
    if (prime[i] == true) {
      for (int j = i * i; j <= n; j += i) {
        prime[j] = false;
      }
    }
  }
  for (int i = 0; i <= n; i++) {
    if (prime[i]) {
      ans[idx] = i;
      idx++;
    }
  }
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  t = 1;
  while (t--) {
    precalc(2000000);
    int n;
    cin >> n;
    for (int i = 0; i < n; i++) {
      cout << ans[i] << " ";
    }
  }
  cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC
       << "ms\n";
  return 0;
}
