#include <bits/stdc++.h>
using namespace std;
int n, p[] = {2, 3, 5, 7, 11};
vector<int> v;
int main() {
  scanf("%d", &n);
  v.push_back(1);
  for (int i = 0; v.size() - 1 < 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() - n; i < v.size(); i++) printf("%d ", v[i]);
}
