#include <bits/stdc++.h>
using namespace std;
void dispv2(vector<vector<long> > A) {
  for (long i = 0; i < A.size() / 3; i++) {
    cout << A[i][0] << " " << A[i][1] << " " << A[i][2] << ",";
  }
  cout << "\n";
}
void dispv(vector<long> A) {
  for (auto i : A) {
    cout << i << ",";
  }
  cout << "\n";
}
void dispum(unordered_map<char, long> Q) {
  for (auto i : Q) {
    cout << i.first << " " << i.second << ",";
  }
  cout << "\n";
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n, cnt = 0, i = 2;
  cin >> n;
  vector<bool> A(10000007, true);
  while (cnt != n) {
    if (A[i] == true) {
      cnt++;
      cout << i << " ";
      for (long long j = i * i; j < 10000007; j += i) A[j] = false;
    }
    i++;
  }
  return 0;
}
