#include <bits/stdc++.h>
using namespace std;
bool prime(int num) {
  if (num <= 1) return false;
  if (num == 2) return true;
  if (num % 2 == 0) return false;
  int sRoot = sqrt(num * 1.0);
  for (int i = 3; i <= sRoot; i += 2) {
    if (num % i == 0) return false;
  }
  return true;
}
int main() {
  int x, c = 1;
  cin >> x;
  cout << "2";
  if (x == 1)
    cout << endl;
  else
    cout << " ";
  for (int i = 3; c != x; i += 2) {
    if (prime(i)) {
      c++;
      if (c != x)
        cout << i << " ";
      else
        cout << i << endl;
    }
  }
  return 0;
}
