#include <bits/stdc++.h>
using namespace std;
int n;
bool done[10000009];
int main() {
  cin >> n;
  for (int i = 2; i < 10000000 && n > 0; i++) {
    if (!done[i]) {
      cout << i << " ";
      n--;
      for (int j = i; j < 10000000; j += i) {
        done[j] = 1;
      }
    }
  }
}
