#include <bits/stdc++.h>
using namespace std;
int n, m;
set<int> myset;
int main() {
  scanf("%d", &n);
  m = 2 * n * n;
  myset.insert(1);
  set<int>::iterator it;
  for (int i = 2; myset.size() < n; i++) {
    it = myset.begin();
    while (it != myset.end() && (*it) * i <= m) {
      myset.insert((*it) * i);
      it++;
    }
  }
  it = myset.end();
  while (it != myset.begin() && n) {
    it--;
    printf("%d ", *it);
    n--;
  }
  printf("\n");
  return 0;
}
