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;
int s[30] = {0, 2, 3, 5, 7, 11, 13, 17, 19};
int cs[30];
int a[10005], N, cnt, ans[10005], m, pp;
void dfs(int k, int t) {
  a[++cnt] = k;
  while (t <= 5) {
    if (k * s[t] <= 50000000) dfs(k * s[t], t);
    t++;
  }
  return;
}
int pd[10], visit[10000];
void f(int k, int t) {
  int u = 0;
  if (k % 2 == 0) {
    if (pp < 80)
      if (k % 5 == 0 || k % 7 == 0 || k % 11 == 0) return;
    if (pp < 500)
      if (k % 7 == 0 || k % 11 == 0) return;
    if (pp < 2000)
      if (k % 11 == 0) return;
    pd[1]++;
    visit[t] = 1;
    u = 1;
  }
  if (k % 3 == 0) {
    if (pp < 80)
      if (k % 5 == 0 || k % 7 == 0 || k % 11 == 0) return;
    if (pp < 500)
      if (k % 7 == 0 || k % 11 == 0) return;
    if (pp < 2000)
      if (k % 11 == 0) return;
    pd[2]++;
    visit[t] = 1;
    u = 1;
  }
  if (k % 5 == 0 && pp >= 80) {
    if (pp < 500)
      if (k % 7 == 0 || k % 11 == 0) return;
    if (pp < 2000)
      if (k % 11 == 0) return;
    pd[3]++;
    visit[t] = 1;
    u = 1;
  }
  if (k % 7 == 0 && pp >= 500) {
    if (pp < 2000)
      if (k % 11 == 0) return;
    pd[4]++;
    visit[t] = 1;
    u = 1;
  }
  if (k % 11 == 0 && pp >= 2000) {
    pd[5]++;
    visit[t] = 1;
    u = 1;
  }
  if (u) ans[++m] = k;
}
int main() {
  int i, j, n, k, d, ct = 0;
  dfs(1, 1);
  sort(a, a + cnt + 1);
  cin >> k;
  d = k / 2;
  n = k * k * 2;
  m = 0;
  pp = k;
  for (i = 1; i <= 5; i++) pd[i] = 0;
  if (k % 2 == 1) d++;
  for (i = cnt; i >= 1; i--) {
    if (a[i] > n) continue;
    if (pd[5] < d && a[i] % 11 == 0 && k >= 2000) {
      f(a[i], i);
    } else if (pd[4] < d && a[i] % 7 == 0 && k >= 500) {
      f(a[i], i);
    } else if (pd[3] < d && a[i] % 5 == 0 && k >= 80) {
      f(a[i], i);
    } else if (pd[2] < d && a[i] % 3 == 0) {
      f(a[i], i);
    } else if (pd[1] < d && a[i] % 2 == 0) {
      f(a[i], i);
    } else {
      if (pd[1] >= d && pd[2] >= d) {
        if (k >= 2000) {
          if (pd[5] >= d && pd[4] >= d && pd[3] >= d) break;
        } else if (k >= 500) {
          if (pd[4] >= d && pd[3] >= d) break;
        } else if (k >= 80) {
          if (pd[3] >= d) break;
        } else
          break;
      }
    }
  }
  if (m < k) {
    for (i = 2; i <= cnt; i++)
      if (a[i] <= n)
        if (!visit[i]) {
          if (k < 2000)
            if (a[i] % 11 == 0) continue;
          if (k < 500)
            if (a[i] % 7 == 0) continue;
          if (k < 80)
            if (a[i] % 5 == 0) continue;
          ans[++m] = a[i];
          if (m == k) break;
        }
  }
  for (i = 1; i < k; i++) cout << ans[i] << " ";
  cout << ans[k] << endl;
  return 0;
}