#include <bits/stdc++.h>
using namespace std;
int primes[] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};
int a[5000001];
int main() {
  int n;
  cin >> n;
  int ind = 0;
  for (int i = 0; ind < n; i++) {
    a[ind++] = primes[i];
    for (int j = 0; j < ind; j++)
      if (a[j] * primes[i] <= 2 * n * n) a[ind++] = a[j] * primes[i];
  }
  int y = 0;
  for (int i = ind - 1; y < n; i--, y++) cout << a[i] << " ";
}
