#include <bits/stdc++.h>
using namespace std;
int pr[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41};
bool comp(int a, int b) { return a > b; }
int main() {
  ios_base::sync_with_stdio(false);
  int k, K;
  cin >> k;
  K = k * k * 2;
  vector<int> ans;
  for (int i = 0; ans.size() < k; i++) {
    ans.push_back(pr[i]);
    for (int j = 0; j < ans.size(); j++)
      if (pr[i] * ans[j] <= K) ans.push_back(pr[i] * ans[j]);
  }
  sort(ans.begin(), ans.end(), comp);
  for (int i = 0; i < k; i++) cout << ans[i] << " ";
  cout << endl;
  return 0;
}
