#include <bits/stdc++.h>
using namespace std;
const double PI = 3.141592653589793238;
template <typename T>
std::ostream& operator<<(std::ostream& os, const std::vector<T>& vector) {
  for (size_t i = 0; i < vector.size(); ++i) {
    os << vector[i] << " ";
  }
  return os;
}
int n, N = 10000000;
int main() {
  std::ios_base::sync_with_stdio(false);
  cin >> n;
  vector<char> prime(N, true);
  prime[0] = prime[1] = false;
  for (int i = 2; i * i <= N; ++i) {
    if (prime[i]) {
      if (1ll * i * i <= N) {
        for (int j = i * i; j <= N; j += i) {
          prime[j] = false;
        }
      }
    }
  }
  for (int i = 2, cnt = 0; cnt < n; ++i) {
    if (prime[i]) {
      cout << i << " ";
      ++cnt;
    }
  }
  return 0;
}
