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;
vector<long long> v;
const int maxm = 50000 * 1000;
bool c[maxm];
long long d[11];
int main() {
  int k;
  cin >> k;
  long long K = (long long)k * 1ll * k * 2;
  d[1] = 2;
  d[2] = 3;
  d[3] = 5;
  d[4] = 7;
  d[5] = 11;
  d[6] = 13;
  if (k < 200) {
    for (int i = 0; i <= 7; i++)
      for (int j = 0; j <= 8; j++)
        for (int g = 0; g <= 14; g++)
          for (int h = 0; h <= 20; h++) {
            int p = 5 * 7;
            long long ans = 1;
            for (int f = 0; f < g; f++) ans *= 3;
            if (ans * p > K) continue;
            for (int f = 0; f < h; f++) ans *= 2;
            if (ans * p > K) continue;
            for (int f = 0; f < j; f++) ans *= 5;
            if (ans * p > K) continue;
            for (int f = 0; f < i; f++) ans *= 7;
            if (ans * p > K) continue;
            for (int i1 = 1; i1 <= 4; i1++)
              for (int i2 = i1 + 1; i2 <= 4; i2++) {
                if (c[d[i1] * d[i2] * ans] ||
                    c[(2 * 3 * 5 * 7) / (d[i1] * d[i2]) * ans])
                  continue;
                v.push_back(d[i1] * d[i2] * ans);
                v.push_back(((2 * 3 * 5 * 7) / (d[i1] * d[i2])) * ans);
                c[d[i1] * d[i2] * ans] = true;
                c[(2 * 3 * 5 * 7) / (d[i1] * d[i2]) * ans] = true;
              }
          }
    if (k % 2 == 0) {
      for (int i = 0; i < k; i++) cout << v[i] << " ";
    } else {
      for (int i = 0; i < k - 1; i++) cout << v[i] << " ";
      for (int i = k; i < v.size(); i++)
        if (v[i] % (2 * 3 * 5 * 7) == 0) {
          cout << v[i];
          break;
        }
    }
    cin >> k;
    return 0;
  }
  for (int i13 = 0; i13 <= 5; i13++)
    for (int i11 = 0; i11 <= 5; i11++)
      for (int i = 0; i <= 7; i++)
        for (int j = 0; j <= 8; j++)
          for (int g = 0; g <= 14; g++)
            for (int h = 0; h <= 20; h++) {
              long long p = 11 * 13 * 7;
              long long ans = 1;
              for (int f = 0; f < i; f++) ans *= 7;
              if (ans * p > K) continue;
              for (int f = 0; f < j; f++) ans *= 5;
              if (ans * p > K) continue;
              for (int f = 0; f < g; f++) ans *= 3;
              if (ans * p > K) continue;
              for (int f = 0; f < h; f++) ans *= 2;
              if (ans * p > K) continue;
              for (int f = 0; f < i11; f++) ans *= 11;
              if (ans * p > K) continue;
              for (int f = 0; f < i13; f++) ans *= 13;
              if (ans * p > K) continue;
              for (int i1 = 1; i1 <= 6; i1++)
                for (int i2 = i1 + 1; i2 <= 6; i2++)
                  for (int i3 = i2 + 1; i3 <= 6; i3++) {
                    if (c[d[i1] * d[i2] * d[i3] * ans] ||
                        c[(2 * 3 * 5 * 7 * 11 * 13) / (d[i1] * d[i2] * d[i3]) *
                          ans])
                      continue;
                    v.push_back(d[i1] * d[i2] * d[i3] * ans);
                    v.push_back(
                        ((2 * 3 * 5 * 7 * 11 * 13) / (d[i1] * d[i2] * d[i3])) *
                        ans);
                    c[d[i1] * d[i2] * d[i3] * ans] = true;
                    c[(2 * 3 * 5 * 7 * 11 * 13) / (d[i1] * d[i2] * d[i3]) *
                      ans] = true;
                  }
            }
  if (k % 2 == 0) {
    for (int i = 0; i < k; i++) cout << v[i] << " ";
  } else {
    for (int i = 0; i < k - 1; i++) cout << v[i] << " ";
    for (int i = k; i < v.size(); i++)
      if (v[i] % (2 * 3 * 5 * 7 * 11 * 13) == 0) {
        cout << v[i];
        break;
      }
  }
  cin >> k;
  return 0;
}