#include <bits/stdc++.h>
using namespace std;
#pragma comment(linker, "/STACK:255000000")
bool firstout = 1;
template <class T>
T &minn(T &a, T b) {
  if (b < a) a = b;
  return a;
}
template <class T>
T &maxx(T &a, T b) {
  if (a < b) a = b;
  return a;
}
int &madd(int &a, int b) {
  a += b;
  if (a >= 1000000007) a -= 1000000007;
  return a;
}
int &msub(int &a, int b) {
  a -= b;
  if (a < 0) a += 1000000007;
  return a;
}
int &mmult(int &a, int b) { return a = (long long)a * b % 1000000007; }
int mdiv(long long a, long long b, long long m) {
  a = (a % m + m) % m;
  b = (b % m + m) % m;
  if (a % b == 0) return a / b;
  return (a + m * mdiv(-a, m, b)) / b;
}
int n, m, q;
int A[5012], AA[5012];
int P[15] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47};
void test(int n) {
  int i, j, k;
  int t = 2 * n * n;
  m = 1;
  A[0] = 1;
  for (k = 0; m < n; ++k) {
    if (k == 15) {
      cerr << "error k" << endl;
      break;
    }
    int mm = 0;
    long long d = P[k];
    int l = m;
    int p = 0;
    for (; mm < n && d <= t; d = (d == P[k]) ? 1
                                 : (d == 1)  ? ((P[k]) * (P[k]))
                                             : d * P[k]) {
      for (i = (0); i < (l); ++i) {
        if (d * A[i] <= t)
          AA[mm++] = A[i] * d;
        else
          break;
        if (d > 1) ++p;
        if (mm == n) break;
      }
      if (d == P[k]) l = i;
    }
    for (; p >= (mm + 2) / 2 && l < m && mm < n;) AA[mm++] = A[l++];
    if (m == mm) {
      cerr << "error " << n << endl;
      break;
    }
    m = mm;
    for (i = (0); i < (m); ++i) A[i] = AA[i];
    sort(A, A + m);
  }
  if (m != n) cerr << "error not found " << n << endl;
}
int main() {
  int i, j, k;
  char c;
  int a, d;
  int ts;
  for (ts = 1; scanf("%"
                     "d",
                     &(n)) > 0;
       ++ts) {
    test(n);
    for (i = (0); i < (n); ++i)
      printf((firstout) ? "%"
                          "d"
                        : " %"
                          "d",
             (A[i])),
          firstout = 0;
    printf("\n"), firstout = 1;
  }
  return 0;
}
