#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> vec;
  for (int i = 2; i <= 10000000; i++) {
    int r = 0;
    if (n != 0) {
      for (int j = 2; j * j <= i; j++) {
        if (i % j == 0) {
          r = 1;
          break;
        }
      }
      if (r == 0) {
        n--;
        vec.push_back(i);
      }
    } else {
      break;
    }
  }
  for (int i = 0; i < vec.size(); i++) {
    cout << vec[i] << " ";
  }
  cout << endl;
}
