#include <bits/stdc++.h>
using namespace std;
int _ = []() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  return 0;
}();
template <typename A>
ostream& operator<<(ostream& os, const set<A>& m) {
  os << "{";
  string sep = "";
  for (auto e : m) os << sep << e, sep = ", ";
  return os << "}";
}
template <typename A, typename B>
ostream& operator<<(ostream& os, const map<A, B>& m) {
  os << "{";
  string sep = "";
  for (auto e : m) os << sep << e.first << ": " << e.second, sep = ", ";
  return os << "}";
}
template <typename T>
ostream& operator<<(ostream& os, const vector<T>& v) {
  os << "[";
  string sep = "";
  for (auto e : v) os << sep << e, sep = ", ";
  return os << "]";
}
template <typename A, typename B>
ostream& operator<<(ostream& os, const pair<A, B>& p) {
  os << '(' << p.first << ", " << p.second << ')';
  return os;
}
int main() {
  int n;
  cin >> n;
  int cnt = 0;
  for (int i = 2; i < 10000005; ++i) {
    if (cnt == n) {
      break;
    }
    bool cool = true;
    for (int j = 2; j * j <= i; ++j) {
      if (i % j == 0) {
        cool = false;
        break;
      }
    }
    if (cool) {
      cout << i;
      ++cnt;
      if (cnt < n) {
        cout << " ";
      } else {
        cout << "\n";
      }
    }
  }
}
