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;
const int oo = 0x3f3f3f3f;
const double eps = 1e-9;
const int maxP = 1024 * 1024;
bool npr[maxP];
vector<int> pr;
int K;
int main() {
  npr[0] = npr[1] = true;
  for (int i = (2); i < (maxP); i++) {
    if (npr[i]) continue;
    pr.push_back(i);
    for (int j = i + i; j < maxP; j += i) npr[j] = true;
  }
  cin >> K;
  int need = (K + 1) / 2;
  for (int j = (1); j < (K); j++) {
    vector<int> cnt(j, 0);
    set<pair<int, int> > todo;
    set<int> num;
    num.insert(1);
    for (int i = (0); i < (j); i++) todo.insert(pair<int, int>(cnt[i], i));
    for (int i = (0); i < (j); i++) {
      vector<int> ins;
      for (int x : num) {
        for (int y = x * pr[i]; y <= 2 * K * K; y *= pr[i]) {
          ins.push_back(y);
        }
      }
      for (int y : ins) num.insert(y);
    }
    bool fail = false;
    set<int> res;
    while (!todo.empty()) {
      int want = todo.begin()->second;
      int select = -1;
      int nu = 0;
      for (int x : num) {
        if (x % pr[want]) continue;
        int nnu = 1;
        for (int i = (0); i < (j); i++)
          if (i != want && (x % pr[i] == 0)) nnu++;
        if (nnu > nu) {
          nu = nnu;
          select = x;
        }
      }
      if (select == -1) {
        fail = true;
        break;
      }
      num.erase(select);
      res.insert(select);
      for (int i = (0); i < (j); i++)
        if (select % pr[i] == 0) {
          todo.erase(pair<int, int>(cnt[i], i));
          cnt[i]++;
          if (cnt[i] < need) todo.insert(pair<int, int>(cnt[i], i));
        }
    }
    if (fail) continue;
    num.erase(num.begin());
    if (int((num).size()) + int((res).size()) < K) continue;
    if (int((res).size()) > K) continue;
    while (int((res).size()) < K) {
      res.insert(*num.begin());
      num.erase(num.begin());
    }
    bool first = true;
    for (int r : res) {
      if (first)
        first = false;
      else
        cout << " ";
      cout << r;
    }
    cout << endl;
    break;
  }
}