#include <bits/stdc++.h>
using namespace std;
int ar[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};
int res[10000];
int main() {
  int k, id = 0;
  cin >> k;
  int lm = 2 * k * k;
  for (int i = 0; i < 10 && id < k; i++) {
    res[id++] = ar[i];
    for (int j = 0; j < id; j++) {
      if (res[j] * ar[i] <= lm) res[id++] = res[j] * ar[i];
    }
  }
  for (int i = id - 1; i >= id - k; i--) cout << res[i] << " ";
  cout << endl;
  return 0;
}
