Problem: We'll call a set of positive integers a beautiful if the following condition fulfills: for any prime p, if <image>, then <image>. In other words, if one number from the set is divisible by prime p, then at least half of numbers from the set is divisible by p.

Your task is to find any beautiful set, where the number of elements is equal to k and each element doesn't exceed 2k2.

Input

The first line contains integer k (10 ≤ k ≤ 5000) that shows how many numbers the required beautiful set should have.

Output

In the first line print k space-separated integers that are a beautiful set. If there are multiple such sets, you are allowed to print any of them.

Examples

Input

10


Output

16 18 24 27 36 48 54 72 108 144 

Solution (in CPP):

Solution:
#include <bits/stdc++.h>
using namespace std;
bool tester(vector<long long> w) {
  int n = w.size();
  map<int, int> mm;
  for (int j = 0; j < (n); ++j)
    for (int i(2); i < (30); ++i) {
      while (w[j] % i == 0) {
        w[j] /= i;
        mm[i]++;
      }
    }
  for (map<int, int>::iterator mit = mm.begin(); mit != mm.end(); ++mit) {
    if (mit->second < (n + 1) / 2) return false;
  }
  return true;
}
int main() {
  int k;
  scanf("%d", &k);
  set<int> s;
  int primes[10] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};
  vector<pair<int, long long> > z;
  for (int i = 0; i < (10); ++i) {
    int tt = primes[i];
    int zz = z.size();
    while (tt < 2 * k * k) {
      z.push_back(make_pair(1 << i, tt));
      tt *= primes[i];
    }
    int zzz = z.size();
    for (int i = 0; i < (zz); ++i)
      for (int j(zz); j < (zzz); ++j)
        if (z[i].second * z[j].second < 2 * k * k) {
          z.push_back(
              make_pair((z[i].first | z[j].first), z[i].second * z[j].second));
        }
  }
  vector<vector<int> > w(1 << 10);
  for (int i = 0; i < (z.size()); ++i) w[z[i].first].push_back(z[i].second);
  vector<long long> res;
  for (int i = 0; i < (1 << 10); ++i) {
    res.clear();
    vector<int> oo(10);
    vector<vector<int> > tw = w;
    for (int ii = 0; ii < (10); ++ii)
      if ((1 << ii) & i) oo[ii] = (k + 1) / 2;
    while (res.size() < k) {
      int bestii = -1, bestv = -1;
      for (int ii = 0; ii < (1 << 10); ++ii)
        if ((ii | i) == i && tw[ii].size()) {
          int v = 0;
          for (int j = 0; j < (10); ++j)
            if ((1 << j) & ii && oo[j] > 0) {
              ++v;
            }
          if (v > bestv) {
            bestii = ii;
            bestv = v;
          }
        }
      if (bestii != -1) {
        res.push_back(tw[bestii].back());
        tw[bestii].pop_back();
        for (int j = 0; j < (10); ++j)
          if ((1 << j) & bestii && oo[j] > 0) {
            oo[j]--;
          }
      } else {
        break;
      }
    }
    if (res.size() == k) {
      bool ok = 1;
      for (int j = 0; j < (10); ++j) {
        if (oo[j] > 0) ok = 0;
      }
      if (ok) {
        for (int iii = 0; iii < (k); ++iii) printf("%d ", res[iii]);
        printf("\n");
        return 0;
      }
    }
  }
  return 0;
}