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 JAVA):

Solution:
import java.util.Arrays;
import java.util.Scanner;

public class CodeForces364C {
	public static void main(String[] a) {
		new CodeForces364C().run();
	}

	int MAXK = 5000 + 5;
	int[] allprimes = new int[] { 2, 3, 5, 7, 11, 13 };
	int[][] qs = new int[10][MAXK];
	int[] ps = new int[10];
	int[] ps2 = new int[10];

	int[] primes;
	int[] cnt;

	void initSmooth(int n) {
		primes = new int[n];
		cnt = new int[n];
		for (int i = 0; i < n; i++) {
			primes[i] = allprimes[i];
			qs[i][0] = primes[i];
			ps[i] = 0;
			ps2[i] = 1;
		}
	}

	int next() {
		int min = 2000000000;
		for (int i = 0; i < primes.length; i++) {
			min = Math.min(min, qs[i][ps[i]]);
		}
		for (int i = 0; i < primes.length; i++) {
			int p = primes[i];
			if (qs[i][ps[i]] == min) {
				cnt[i]++;
				ps[i]++;
			}
			if (ps2[i] < MAXK) {
				qs[i][ps2[i]] = min * p;
				ps2[i]++;
			}
		}
		return min;
	}

	int[] nums = new int[MAXK];
	private boolean trywith(int pc, int K) {
		initSmooth(pc);
		for (int i = 0; i < K; i++) {
			int x = next();
			if (x > 2 * K * K)
				return false;
			nums[i] = x;
		}
		return true;
	}
	
	private void print(int K) {
		StringBuilder sb = new StringBuilder();
		for (int i = 0; i < K; i++) {
			sb.append(nums[i]).append(' ');
		}
		sb.deleteCharAt(sb.length() - 1);

		System.out.println(sb.toString());
	}

	public void run() {
		try (Scanner in = new Scanner(System.in)) {
			int K = in.nextInt();
			//for (int K = 10; K <= 5000; K++) {
				for (int pc = 1;; pc++) {
					if (trywith(pc, K)) {
						for (int i = 0; i < K && 2*cnt[pc-1] < K; i++) {
							if (nums[i] % primes[pc-1] != 0) {
								int old = nums[i];
								nums[i] = qs[pc-1][ps[pc-1]++];
								for (int j = 0; j < primes.length; j++) {
									if (old%primes[j]==0 && nums[i]%primes[j] != 0)
										cnt[j]--;
									if (old%primes[j]!=0 && nums[i]%primes[j] == 0)
										cnt[j]++;
										
								}
							}
						}
						//System.out.println(Arrays.toString(cnt));
						print(K);
						break;
					}
				}
			//}
		}
	}
}