#include <bits/stdc++.h>
using namespace std;
bool isprime(int n) {
  if (n == 2) return true;
  if (n % 2 == 0) return false;
  for (int i = 3; i <= sqrt(n); i += 2) {
    if (n % i == 0) return false;
  }
  return true;
}
int main() {
  int m, x = 0;
  cin >> m;
  for (int j = 3; j < 1e7; j += 2) {
    if (isprime(j)) {
      cout << j << " ";
      x++;
    }
    if (x == m) break;
  }
}
