#include <bits/stdc++.h>
using namespace std;
long long prime[10000001];
int main() {
  long long n, i, j, limit, b, s = 0, x = 0;
  cin >> n;
  limit = sqrt(10000001);
  prime[0] = 1;
  prime[1] = 1;
  for (i = 4; i <= 10000001; i += 2) {
    prime[i] = 1;
  }
  for (i = 3; i <= limit; i += 2) {
    if (prime[i] == 0) {
      for (j = 3; i * j <= 10000001; j += 2) {
        prime[i * j] = 1;
      }
    }
  }
  while (1) {
    if (prime[x] == 0) {
      cout << x << " ";
      x++;
      s++;
    } else {
      x++;
    }
    if (s == n) {
      return 0;
    }
  }
  return 0;
}
