#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  bitset<2000000LL> b;
  b.set();
  b[0] = false;
  for (size_t i = 2; i * i <= b.size(); ++i) {
    if (b[i]) {
      for (size_t j = i * i; j <= b.size(); j += i) {
        b[j] = false;
      }
    }
  }
  size_t n;
  cin >> n;
  for (size_t i = 2; n && i != b.size(); ++i) {
    if (b[i]) {
      cout << i;
      if (n > 1) {
        cout << " ";
      }
      --n;
    }
  }
  return 0;
}
