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