#include <bits/stdc++.h>
using namespace std;
int n;
vector<int> ans{1}, pr{2, 3, 5, 7, 11};
int main() {
  cin >> n;
  for (int p : pr) {
    if (ans.size() > n) break;
    for (int i = 0; i < (int)ans.size(); i++) {
      if (ans[i] * p <= 2 * n * n) ans.emplace_back(ans[i] * p);
    }
  }
  reverse(begin(ans), end(ans));
  ans.resize(n);
  for (int x : ans) cout << x << ' ';
}
