#include <bits/stdc++.h>
using namespace std;
bool prime(int x) {
  if (x % 2 == 0) return 0;
  for (size_t i = 3; i * i <= x; i += 2) {
    if (x % i == 0) return 0;
  }
  return 1;
}
void solve() {
  int n, x = 3;
  cin >> n;
  while (n) {
    if (prime(x)) {
      cout << x << " ";
      n--;
    }
    x += 2;
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  solve();
}
