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;
vector<int> prs = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29};
set<int> ok;
int Y = 2 * 5000 * 5000;
int LIM = 5;
void addTo(set<int> &x, int mul, int bs) {
  set<int> y;
  for (auto u : x) {
    if (u % bs) {
      if ((long long)u * mul <= Y) {
        y.insert(u * mul);
      }
    }
  }
  for (auto u : y) {
    x.insert(u);
  }
}
int cx(set<pair<int, int>> &uh, int val, int kek = Y) {
  int cnt = 0;
  for (auto u : uh)
    if (u.second <= kek) cnt += (u.second % val == 0);
  return cnt;
}
void gen(int ind) {
  if (ind == LIM) return;
  int cur = prs[ind];
  for (int i = 0; i < 22; i++) {
    if (cur > Y) break;
    addTo(ok, cur, prs[ind]);
    cur *= prs[ind];
  }
  gen(ind + 1);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ok.insert(1);
  gen(0);
  vector<pair<int, int>> uh;
  for (auto u : ok) {
    int msk = 0;
    for (int i = 0; i < 10; i++) {
      if (u % prs[i] == 0) {
        msk |= (1 << i);
      }
    }
    uh.push_back({__builtin_popcount(msk), u});
  }
  sort(uh.begin(), uh.end(), greater<pair<int, int>>());
  int K;
  cin >> K;
  set<pair<int, int>> F;
  for (int t = 1; t <= LIM; t++) {
    for (auto v : uh) {
      int u = v.second;
      if (u <= 2 * K * K) {
        bool ko = 0;
        for (int j = t; j < LIM; j++) {
          if (u % prs[j] == 0) {
            ko = 1;
            break;
          }
        }
        if (!ko) {
          F.insert(v);
        }
      }
    }
    if (F.size() > K) {
      vector<int> uhk;
      for (auto u : F) uhk.push_back(u.second);
      reverse(uhk.begin(), uhk.end());
      F.clear();
      for (int i = 0; i < K; i++) {
        F.insert({0, uhk[i]});
      }
      int uh = 0;
      for (int i = 0; i < t; i++) {
        uh = cx(F, prs[i]);
        assert(2 * uh >= K);
      }
      break;
    }
  }
  for (auto u : F) {
    cout << u.second << ' ';
  }
  cerr << "Time : " << (double)clock() / (double)CLOCKS_PER_SEC << "s\n";
  return 0;
}