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 p[6] = {2, 3, 5, 7, 11, 13};
int k, a[10];
vector<int> v[70], ans;
set<int> ss;
void dfs(int x, int idx, int z) {
  if (idx == 5) return;
  if (k <= 60 && idx == 4) return;
  dfs(x, idx + 1, z);
  x *= p[idx];
  while (x <= k * k * 2) {
    v[z | (1 << idx)].push_back(x);
    dfs(x, idx + 1, z | (1 << idx));
    x *= p[idx];
  }
}
void check() {
  ss.clear();
  for (int j = 0; j < ans.size(); j++) ss.insert(ans[j]);
  if (ss.size() != k) cout << "\t" << k << " " << ss.size() << endl;
  for (int j = 0; j < ans.size(); j++)
    if (ans[j] < 1 || ans[j] > 2 * k * k) cout << k << " " << ans[j] << endl;
  for (int j = 0; j < ans.size(); j++) {
    int tmp = ans[j];
    for (int i = 0; i < 5; i++)
      while (tmp % p[i] == 0) tmp /= p[i];
    if (tmp != 1) cout << k << " " << ans[j] << endl;
  }
  for (int i = 0; i < 5; i++) {
    int ret = 0;
    for (int j = 0; j < ans.size(); j++)
      if (ans[j] % p[i] == 0) ret++;
    if (ret > 0 && ret < (k + 1) / 2)
      cout << k << " " << p[i] << " " << ret << endl;
  }
}
void solve() {
  for (int i = 0; i < 40; i++) v[i].clear();
  ans.clear();
  dfs(1, 0, 0);
  int u;
  if (k <= 60)
    u = 15;
  else
    u = 31;
  memset(a, 0, sizeof(a));
  for (int i = 0; i < v[u].size(); i++) {
    ans.push_back(v[u][i]);
    for (int j = 0; (1 << j) <= u; j++) a[j]++;
    if (ans.size() == k) break;
  }
  while (ans.size() < k) {
    bool flag = true;
    int tt = 0;
    for (int j = 0; (1 << j) <= u; j++)
      if (a[j] < k / 2) flag = false;
    if (flag) break;
    for (int j = 0; (1 << j) <= u; j++) tt += v[u - (1 << j)].size();
    if (tt == 0) break;
    int mx = 0;
    while (v[u - (1 << mx)].size() == 0) mx++;
    for (int j = 0; (1 << j) <= u; j++)
      if (v[u - (1 << j)].size() > 0 && a[mx] < a[j]) mx = j;
    for (int j = 0; (1 << j) <= u; j++)
      if (mx != j) a[j]++;
    ans.push_back(v[u - (1 << mx)].back());
    v[u - (1 << mx)].pop_back();
  }
  int l = u - 1;
  while (ans.size() < k) {
    while (ans.size() < k && v[l].size() > 0) {
      ans.push_back(v[l].back());
      v[l].pop_back();
    }
    l--;
  }
  check();
}
int main() {
  scanf("%d", &k);
  solve();
  for (int i = 0; i < ans.size(); i++)
    printf("%d%c", ans[i], (i < ans.size() - 1) ? ' ' : '\n');
  return 0;
}