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.io.*;
import java.util.*;

public class A {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int p = sc.nextInt();
		if(p==3){
			System.out.println("2 6 12");
			return;
		}
		new A().solve(p);
	}
	
	public boolean solve(int desired) {
		K = desired;
		INDEX = (K<=9 ? 0 :  K<=49 ? 1 : k<=200 ? 2 : 3);
		rec(0, 1);
		int[] c = new int[a[INDEX].length];
		for(int i=0; i<a[INDEX].length; i++){
			Iterator<Integer> it = set.iterator();
			int cnt = 0;
			while(it.hasNext()){
				int cur = it.next();
				if(cur%a[INDEX][i]==0)
					cnt++;
			}
			c[i] = cnt;
		}
	//	System.out.println(set.size());
	//	System.out.println(Arrays.toString(c));
		int[] A = new int[set.size()];
		Iterator<Integer> iter = set.iterator();
		int pos = 0;
		while(iter.hasNext()){
			A[pos] = iter.next();
			pos++;
	//		System.out.println(A[pos-1]);
		}
	//	System.out.println(Arrays.toString(c));
		Deque<Integer> D = new LinkedList<Integer>();
		for(int x : A) D.add(x);
		int[] fr = new int[a[INDEX].length];
		for(int i=0; i<a[INDEX].length; i++) fr[i] = c[i];
		while(D.size()!=desired){
			int cur = D.pollLast();
		//	System.out.println(D.size()+" "+cur+" "+Arrays.toString(fr));
			boolean ok = true;
			for(int x=0; x<a[INDEX].length; x++){
				if(cur%a[INDEX][x]!=0) continue;
				if(fr[x]>1 && 2*(fr[x] - 1) < D.size())
					ok = false;
			}
			if(ok){
				for(int x=0; x<a[INDEX].length; x++){
					if(cur%a[INDEX][x]!=0) continue;
					fr[x]--;
				}
				continue;
			}
			else{
				D.addFirst(cur);
			}
		}
		Iterator<Integer> it = D.iterator();
		int[] x = new int[desired];
		int t = 0;
		PrintWriter pw=  new PrintWriter(System.out);
		while(it.hasNext()){
			x[t] = it.next();
			pw.print(x[t]+" ");;
			t++;
		}
	//	System.out.println();
		pw.println();
		pw.flush();
		return ok(x, desired);
	}
	
	
	static boolean ok(int[] x, int all){
		//System.out.println(Arrays.toString(x));
		int[] cnt = new int[a[INDEX].length];
		for(int y : x){
			if(y > 2*k*k){
			//	System.out.println("dshvc");
				return false;
			}
			for(int s=0; s<a[INDEX].length; s++){
				if(y%a[INDEX][s]==0){
					cnt[s]++;
				}
			}
		}
		for(int i=0; i<a[INDEX].length; i++){
			if(2*cnt[i] < all && cnt[i]>0){
			//	System.out.println("ty "+a[i]);
				return false;
			}
		}
		return true;
	}
	
	static ArrayList<Integer> indices(int num){
		ArrayList<Integer> ans = new ArrayList<Integer>();
		for(int i=0; i<a[INDEX].length; i++){
			if(num%a[INDEX][i]==0)
				ans.add(i);
		}
		return ans;
	}
	
	
	static void rec(int pos, int mult){
	//	System.out.println(Arrays.toString(a) +" "+ pos+" "+mult);
		if(pos>=a[INDEX].length)
			return;
		int c = mult;
		for(int i=1; i<=25; i++){
			c *= a[INDEX][pos];
			if(c>2*K*K)
				break;
			set.add(c);
	//		list.add(c);
			rec(pos+1, c);
		}
		rec(pos+1, mult);
	}

	static int INDEX;
	
	static int k = 5000;
	
	static int K;
	
	static int[][] a = new int[][] { {2, 3}, {2, 3, 5}, {2, 3, 5, 7}, {2, 3, 5, 7, 11}};
	
	//static int[] a = new int[]{2, 3, 5, 7, 11};
	
	static ArrayList<Integer> list = new ArrayList<Integer>();
	static HashSet<Integer> set = new HashSet<Integer>();
}