#include <bits/stdc++.h>
using namespace std;
vector<int> o{1}, ps{2, 3, 5, 7, 11};
int main() {
  int n;
  scanf("%d", &n);
  for (auto p : ps) {
    if ((int)o.size() > n) break;
    for (int i = 0; i < (int)o.size(); ++i)
      if (o[i] * p <= 2 * n * n) o.push_back(o[i] * p);
  }
  for (int i = 0; i < n; ++i) printf("%d ", *(o.rbegin() + i));
  return 0;
}
