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;
set<int> answer;
int k;
vector<int> primes = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31};
inline void dump_set(set<int> t) {
  for (const auto &u : t) cout << u << " ";
  cout << endl;
}
inline int get_mask(int number, int n) {
  int mask = 0;
  for (int i = 0; i < n; i++)
    if (number % primes[i] == 0) mask |= 1 << i;
  return mask;
}
vector<int> make_counter() {
  vector<int> cnt(primes.size(), 0);
  for (const auto &u : answer)
    for (int i = 0; i < primes.size(); i++)
      if (u % primes[i] == 0) cnt[i]++;
  return cnt;
}
inline bool is_good_solution() {
  auto cnt = make_counter();
  for (int i = 0; i < primes.size(); i++)
    if (cnt[i] > 0 and cnt[i] * 2 < k) return false;
  return answer.size() == k;
}
void solve() {
  int limit = 2 * k * k;
  set<int> all_numbers;
  all_numbers.insert(1);
  for (int mx = 0; mx < primes.size(); mx++) {
    answer.clear();
    set<int> available_now;
    for (const auto &u : all_numbers) {
      long long power = 1;
      for (int i = 0; i < 30; i++) {
        if (power * u > limit) break;
        available_now.insert(static_cast<int>(power * u));
        power *= primes[mx];
      }
    }
    for (const auto &u : available_now) all_numbers.insert(u);
    set<int> numbers = all_numbers;
    int n = mx + 1;
    vector<int> cnt(n, 0);
    int idx = n - 1;
    vector<set<pair<int, int> > > numbers_by_highest(n);
    for (const auto &u : numbers) {
      int mask = get_mask(u, n);
      for (int i = n - 1; i >= 0; i--)
        if (mask & (1 << i)) {
          numbers_by_highest[i].insert({-__builtin_popcount(mask), u});
          break;
        }
    }
    while (idx >= 0 and answer.size() < k) {
      while (idx >= 0 and cnt[idx] * 2 >= k) idx--;
      if (idx < 0 or numbers_by_highest[idx].empty()) break;
      int number = numbers_by_highest[idx].begin()->second;
      numbers_by_highest[idx].erase(numbers_by_highest[idx].begin());
      numbers.erase(number);
      answer.insert(number);
      int mask = get_mask(number, n);
      for (int i = 0; i < n; i++)
        if (mask & (1 << i)) cnt[i]++;
    }
    while (answer.size() < k and numbers.size() > 0) {
      answer.insert(*numbers.begin());
      numbers.erase(numbers.begin());
    }
    if (is_good_solution()) return;
  }
}
int main() {
  cin >> k;
  solve();
  assert(is_good_solution());
  dump_set(answer);
  return 0;
}