#include <bits/stdc++.h>
using namespace std;
int pr[] = {2, 3, 5, 7, 11, 13, 17, 23, 29};
int main() {
  int n, m, d, i, j, k, x, y;
  ios_base::sync_with_stdio(0), cin.tie(0);
  cin >> k;
  int lim = (2 * k * k);
  int tot = 0;
  vector<int> v;
  v.push_back(1);
  for (i = 0; i < 8; i++) {
    for (int j = 0; j < v.size(); j++) {
      if ((v[j] * pr[i]) <= lim) v.push_back(v[j] * pr[i]);
    }
    if (v.size() >= k) break;
  }
  int sz = v.size();
  for (int i = sz - 1; i >= sz - k; i--) cout << v[i] << " ";
  cout << "\n";
  return 0;
}
