#include <bits/stdc++.h>
using namespace std;
bool f[10000005];
int main() {
  int n;
  cin >> n;
  memset(f, true, sizeof(f));
  f[1] = false;
  for (int i = 2; i * i <= 10000000; i++) {
    if (f[i] == false) continue;
    int j = i * i;
    while (j <= 10000000) {
      f[j] = false;
      j += i;
    }
  }
  for (int i = 2; i <= 10000000; i++) {
    if (f[i] == true) {
      n--;
      cout << i << " ";
      if (n == 0) return 0;
    }
  }
  return 0;
}
