#include <bits/stdc++.h>
using namespace std;
void optimize();
void precision();
vector<int> p;
int N = 10000007;
bool mark[10000009];
void sieve() {
  int lim = sqrt(N * 1.0 + 5.0);
  memset(mark, 0, sizeof(mark));
  p.push_back(2);
  for (int i = 4; i < N; i += 2) mark[i] = 1;
  for (int i = 3; i < N; i += 2) {
    if (!mark[i]) {
      p.push_back(i);
      if (i <= lim) {
        for (int j = i * i; j < N; j += i) {
          mark[j] = 1;
        }
      }
    }
  }
}
int main() {
  optimize();
  int n;
  cin >> n;
  sieve();
  for (int i = 0; i < n; ++i) cout << p[i] << " ";
  cout << endl;
  return 0;
}
void optimize() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
}
void precision() {
  cout.precision(12);
  cout << fixed;
}
