#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0), cerr << "";
  int p[6] = {2, 3, 5, 7, 11, 13};
  v.push_back(1);
  long long n;
  cin >> n;
  for (int i = 0; v.size() <= n; i++)
    for (int j = 0; j < v.size(); j++)
      if (v[j] * p[i] <= 2 * n * n) v.push_back(v[j] * p[i]);
  for (int i = v.size() - 1; i >= v.size() - n; i--) cout << v[i] << " ";
  return 0;
}
