#include <bits/stdc++.h>
using namespace std;
stringstream ss;
long long mod = 1000000007LL;
int main() {
  int k;
  int p[13] = {2, 3, 5, 7, 11, 13, 17, 19, 21, 29, 31, 37, 41};
  cin >> k;
  vector<int> ans;
  ans.push_back(1);
  for (int i = 0; i < 13 && ans.size() <= k; i++)
    for (int j = 0; j < ans.size(); j++)
      if (ans[j] * p[i] <= 2 * k * k) ans.push_back(ans[j] * p[i]);
  sort(ans.begin(), ans.end());
  for (int i = k; i > 0; i--) cout << ans[ans.size() - i] << " ";
  cout << endl;
  return 0;
}
