#include <bits/stdc++.h>
using namespace std;
vector<int> ans;
const int p[] = {2, 3, 5, 7, 11, 13, 17, 19};
int n;
int main() {
  cin >> n;
  ans.push_back(1);
  for (int i = 0;; i++) {
    for (int j = 0; j < ans.size(); j++) {
      int t = ans[j];
      if (t * p[i] <= n * n * 2) ans.push_back(t * p[i]);
    }
    if (ans.size() > n) break;
  }
  for (int i = ans.size() - n; i < ans.size(); i++) cout << ans[i] << ' ';
  cout << endl;
}
