#include <bits/stdc++.h>
using namespace std;
void Range_s(int ans) {
  int n = 10000000;
  vector<bool> isPrime(n + 1, true);
  isPrime[0] = isPrime[1] = 0;
  for (long long int i = 2; i * i <= n; ++i) {
    if (isPrime[i]) {
      for (int j = i * 2; j <= n; j += i) isPrime[j] = 0;
    }
  }
  int cnt = 0;
  for (int i = 0; i < (int)isPrime.size(); ++i) {
    if (isPrime[i]) {
      cout << i << " ";
      --ans;
    }
    if (ans == 0) break;
  }
}
int main() {
  ios::sync_with_stdio(false);
  int ans;
  cin >> ans;
  Range_s(ans);
  return 0;
}
