#include <bits/stdc++.h>
using namespace std;
const int INF = 2 * 1e9;
const double PI = acos(-1);
vector<int> a;
int p[10000001];
int m = 10000000;
int main() {
  int n;
  cin >> n;
  for (int i = 2; i * i <= m; i++) {
    if (!p[i]) {
      for (int j = i * i; j <= m; j += i) p[j] = 1;
    }
  }
  for (int i = 2; i <= m; i++)
    if (!p[i]) a.push_back(i);
  for (int i = 0; i < n; i++) cout << a[i] << " ";
}
