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;
void _fill_int(int* p, int val, int rep) {
  int i;
  for (i = 0; i < rep; i++) p[i] = val;
}
signed long long GETi() {
  signed long long i;
  scanf("%lld", &i);
  return i;
}
int K;
int R[5001];
set<int> S[64];
int pr[] = {2, 3, 5, 7, 11, 13};
int check(int id) {
  int i, x, y;
  int num[6], rn;
  int snum[64];
  vector<int> mask[7];
  vector<int> S2[64];
  for (x = 1; x < 1 << id; x++) mask[__builtin_popcount(x)].push_back(x);
  for (i = 0; i < 64; i++) snum[i] = S[i].size();
  memset(snum, 0, sizeof(snum));
  rn = 0;
  for (i = id; i >= 0 && rn < K; i--) {
    while (1) {
      y = rn;
      for (x = 0; x < mask[i].size(); x++) {
        if (snum[mask[i][x]] >= S[mask[i][x]].size()) goto out;
        if (rn == K) goto out;
        snum[mask[i][x]]++;
        rn++;
      }
      if (y == rn) break;
    }
  out:;
  }
  for (i = id; i >= 0 && rn < K; i--) {
    for (x = 0; x < mask[i].size(); x++) {
      y = min(K - rn, (int)S[mask[i][x]].size() - snum[mask[i][x]]);
      rn += y;
      snum[mask[i][x]] += y;
    }
  }
  if (rn < K) return 0;
  memset(num, 0, sizeof(num));
  for (i = 0; i < 1 << id; i++)
    for (x = 0; x < id; x++)
      if (i & (1 << x)) num[x] += snum[i];
  for (x = 0; x < id; x++)
    if (num[x] < K / 2) return 0;
  for (i = 0; i < 1 << id; i++) {
    for (__typeof(S[i].begin()) it = S[i].begin(); it != S[i].end(); it++) {
      if (snum[i]-- == 0) break;
      (void)printf("%d ", *it);
    }
  }
  (void)printf("\n");
  return 1;
}
set<int> lup(int id) {
  int i, x;
  set<int> s1, s2, s3;
  x = 1;
  for (i = 0; i < 6; i++)
    if (id & (1 << i)) x *= pr[i];
  if (x > 2 * K * K) return s1;
  s1.insert(x);
  s2.insert(x);
  while (!s2.empty()) {
    s3.clear();
    for (i = 0; i < 6; i++)
      if (id & (1 << i))
        for (__typeof(s2.begin()) it = s2.begin(); it != s2.end(); it++) {
          if (*it * pr[i] <= 2 * K * K) {
            s1.insert(*it * pr[i]);
            s3.insert(*it * pr[i]);
          }
        }
    s2 = s3;
  }
  return s1;
}
void solve() {
  int f, i, j, k, l, x, y;
  cin >> K;
  for (x = 1; x <= 63; x++) S[x] = lup(x);
  for (i = 1; i <= 6; i++)
    if (check(i)) break;
}
int main(int argc, char** argv) {
  if (argc > 1) freopen(argv[1], "r", stdin);
  solve();
  return 0;
}