#include <bits/stdc++.h>
using namespace std;
int main() {
  int k;
  long long lim, acu;
  cin >> k;
  lim = 2 * k * k;
  int p[7] = {2, 3, 5, 7, 11, 13, 17};
  long long m[500000];
  acu = 1;
  m[0] = 1;
  for (int i = 0; acu < k; i++) {
    for (int j = 0; j < acu; j++) {
      if (m[j] * p[i] <= lim) {
        m[acu++] = m[j] * p[i];
      }
    }
  }
  for (int t = 0; t < k; t++) {
    cout << m[acu - k + t] << " ";
  }
}
