#include <bits/stdc++.h>
using namespace std;
bool cmp(long long a, long long b) { return a > b; }
long long expo(long long a, long long b, long long m) {
  if (b == 0) return 1;
  if (b == 1) return a;
  long long val = (expo(a, b / 2, m) * expo(a, b / 2, m)) % m;
  if (b & 1)
    return (val * a) % m;
  else
    return val;
}
long long mmi(long long a, long long m) { return expo(a, m - 2, m); }
long long a[20000001], b[200001];
int32_t main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long n;
  cin >> n;
  for (long long i = 0; i < 1e7; i++) a[i] = 1;
  for (long long i = 2; i <= 1e7; i++) {
    if (a[i] == 1)
      for (long long j = 2 * i; j <= 1e7; j += i) {
        a[j] = 0;
      }
  }
  for (long long i = 2; i <= 1e7; i++) {
    if (a[i]) {
      cout << i << " ";
      n--;
    }
    if (n == 0) break;
  }
  cout << "\n";
  return 0;
}
