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;
#pragma comment(linker, "/STACK:255000000")
bool firstout = 1;
template <class T>
T &minn(T &a, T b) {
  if (b < a) a = b;
  return a;
}
template <class T>
T &maxx(T &a, T b) {
  if (a < b) a = b;
  return a;
}
int &madd(int &a, int b) {
  a += b;
  if (a >= 1000000007) a -= 1000000007;
  return a;
}
int &msub(int &a, int b) {
  a -= b;
  if (a < 0) a += 1000000007;
  return a;
}
int &mmult(int &a, int b) { return a = (long long)a * b % 1000000007; }
int mdiv(long long a, long long b, long long m) {
  a = (a % m + m) % m;
  b = (b % m + m) % m;
  if (a % b == 0) return a / b;
  return (a + m * mdiv(-a, m, b)) / b;
}
int n, m, q;
int A[5012], AA[5012];
int P[15] = {2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47};
void test(int n) {
  int i, j, k;
  int t = 2 * n * n;
  m = 1;
  A[0] = 1;
  for (k = 0; m < n; ++k) {
    if (k == 15) {
      cerr << "error k" << endl;
      break;
    }
    int mm = 0;
    long long d = P[k];
    int l = m;
    int p = 0;
    for (; mm < n && d <= t; d = (d == P[k]) ? 1
                                 : (d == 1)  ? ((P[k]) * (P[k]))
                                             : d * P[k]) {
      for (i = (0); i < (l); ++i) {
        if (d * A[i] <= t)
          AA[mm++] = A[i] * d;
        else
          break;
        if (d > 1) ++p;
        if (mm == n) break;
      }
      if (d == P[k]) l = i;
    }
    for (; p >= (mm + 2) / 2 && l < m && mm < n;) AA[mm++] = A[l++];
    if (m == mm) {
      cerr << "error " << n << endl;
      break;
    }
    m = mm;
    for (i = (0); i < (m); ++i) A[i] = AA[i];
    sort(A, A + m);
  }
  if (m != n) cerr << "error not found " << n << endl;
}
int main() {
  int i, j, k;
  char c;
  int a, d;
  int ts;
  for (ts = 1; scanf("%"
                     "d",
                     &(n)) > 0;
       ++ts) {
    test(n);
    for (i = (0); i < (n); ++i)
      printf((firstout) ? "%"
                          "d"
                        : " %"
                          "d",
             (A[i])),
          firstout = 0;
    printf("\n"), firstout = 1;
  }
  return 0;
}