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;
int main() {
  vector<int> primes;
  vector<char> is_prime(1000, 1);
  is_prime[0] = is_prime[1] = 0;
  for (int p = 2; p < (int((is_prime).size())); ++p) {
    if (!is_prime[p]) continue;
    primes.push_back(p);
    for (int q = p * p; q < (int((is_prime).size())); q += p) is_prime[q] = 0;
  }
  int K = 0;
  cin >> K;
  set<pair<int, int> > have;
  have.insert(make_pair(0, 1));
  int n;
  for (n = 0; (int((have).size())) < K; ++n) {
    int p = primes[n];
    set<pair<int, int> > next;
    for (__typeof((have).begin()) it = (have).begin(); it != (have).end();
         ++it) {
      for (pair<int, int> x = *it; x.second <= 2 * K * K;
           ++x.first, x.second *= p) {
        next.insert(x);
      }
    }
    have.swap(next);
  }
  set<int> result;
  while (n-- > 0) {
    const int p = primes[n];
    int x = (K + 1) / 2;
    for (__typeof((result).begin()) it = (result).begin(); it != (result).end();
         ++it)
      if (*it % p == 0) --x;
    for (set<pair<int, int> >::const_reverse_iterator it = have.rbegin();
         it != have.rend() && x > 0; ++it) {
      int i = it->second;
      if (i % p == 0 && result.find(i) == result.end()) {
        result.insert(i);
        --x;
      }
    }
    assert(x <= 0);
  }
  assert((int((result).size())) <= K);
  for (set<pair<int, int> >::const_reverse_iterator it = have.rbegin();
       it != have.rend() && (int((result).size())) < K; ++it) {
    result.insert(it->second);
  }
  assert((int((result).size())) == K);
  for (__typeof((result).begin()) it = (result).begin(); it != (result).end();
       ++it) {
    if (it != result.begin()) cout << ' ';
    cout << *it;
  }
  cout << endl;
}