#include <bits/stdc++.h>
using namespace std;
bitset<1300005> isp;
vector<int> pr;
int n;
void sieve(int n) {
  int cur = 0;
  isp.flip();
  for (long long i = 2; i <= 1300000; i++) {
    if (isp.test(i)) {
      pr.push_back(i);
      cur++;
      if (cur == n) {
        break;
      }
      for (long long j = i * i; j <= 1300000; j += i) isp.reset(j);
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  sieve(n);
  for (int x : pr) {
    cout << x << " ";
  }
  cout << '\n';
  return 0;
}
