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.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class A {
    public static void main(String[] args) throws Exception {
        BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
        int n = Integer.parseInt(bf.readLine());
        int[] count = new int[5];
        ArrayList<ArrayList<Node>> a = new ArrayList<ArrayList<Node>>();
        for(int i=0; i<5; i++) a.add(new ArrayList<Node>());
        hi0: 
                        for(int k=0; k<26; k++) {
                            long b = (long)Math.pow(2,k);
                            if(b <= 2*n*n) {
                                count[0]++;
                                a.get(0).add(new Node(b,k));
                                //if(a.get(0).size() == n) break hi0;
                            }
                        }   
        
        hi1:
                    for(int j=0; j<17; j++) {
                        for(int k=0; k<26; k++) {
                            BigInteger b = BigInteger.valueOf((long)Math.pow(2,k)).multiply(BigInteger.valueOf((long)Math.pow(3,j)));
                            if(b.compareTo(BigInteger.valueOf(2*n*n)) <= 0) {
                                if(j > 0) count[1]++;
                                a.get(1).add(new Node(b.longValue(), j+k));
                                //if(a.get(1).size() == n) break hi1;
                            }
                        }
                    }
            
        
        hi2: 
                for(int i=0; i<12; i++) { 
                    for(int j=0; j<17; j++) {
                        for(int k=0; k<26; k++) {
                            BigInteger b = BigInteger.valueOf((long)Math.pow(2,k)).multiply(BigInteger.valueOf((long)Math.pow(3,j))).multiply(BigInteger.valueOf((long)Math.pow(5,i)));
                            if(b.compareTo(BigInteger.valueOf(2*n*n)) <= 0) {
                                if(i > 0) count[2]++;
                                a.get(2).add(new Node(b.longValue(), i+j+k));
                                //if(a.get(2).size() == n) break hi2;
                            }
                        }
                    }
                }
        
        hi3: 
            for(int l=0; l<10; l++) {
                for(int i=0; i<12; i++) { 
                    for(int j=0; j<17; j++) {
                        for(int k=0; k<26; k++) {
                            BigInteger b = BigInteger.valueOf((long)Math.pow(2,k)).multiply(BigInteger.valueOf((long)Math.pow(3,j))).multiply(BigInteger.valueOf((long)Math.pow(5,i))).multiply(BigInteger.valueOf((long)Math.pow(7,l)));
                            if(b.compareTo(BigInteger.valueOf(2*n*n)) <= 0) {
                                if(l > 0) count[3]++;
                                a.get(3).add(new Node(b.longValue(), l+i+j+k));
                                //if(a.get(3).size() == n) break hi3;
                            }
                        }
                    }
                }
            }

        hi4: for(int m=0; m<8; m++) {
            for(int l=0; l<10; l++) {
                for(int i=0; i<12; i++) { 
                    for(int j=0; j<17; j++) {
                        for(int k=0; k<26; k++) {
                            BigInteger b = BigInteger.valueOf((long)Math.pow(2,k)).multiply(BigInteger.valueOf((long)Math.pow(3,j))).multiply(BigInteger.valueOf((long)Math.pow(5,i))).multiply(BigInteger.valueOf((long)Math.pow(7,l))).multiply(BigInteger.valueOf((long)Math.pow(11,m)));
                            if(b.compareTo(BigInteger.valueOf(2*n*n)) <= 0) {
                                if(m > 0) count[4]++;
                                a.get(4).add(new Node(b.longValue(), m+l+i+j+k));
                                //if(a.get(4).size() == n) break hi4;
                            }
                        }
                    }
                }
            }
        }
        for(int i=0; i<5; i++) Collections.sort(a.get(i));
        for(int i=0; i<5; i++) {
            if(count[i]*2 >= n && a.get(i).size() >= n) {
                for(int x=0; x<n; x++) System.out.print(a.get(i).get(x).val + " ");
                System.exit(0);
            }
        }
        //System.out.println(Arrays.toString(count));
        // Scanner scan = new Scanner(System.in);
        // PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); 
        // 
        // StringTokenizer st = new StringTokenizer(bf.readLine());
        // int[] a = new int[n]; for(int i=0; i<n; i++) a[i] = Integer.parseInt(st.nextToken());
        // int n = Integer.parseInt(st.nextToken());
        // int n = scan.nextInt();

        // out.close(); System.exit(0);
    }
}
class Node implements Comparable {
    public long val;
    public int pos;
    public Node(long a, int b) {
        val = a;
        pos = b;
    }
    @Override
    public int compareTo(Object o) {
        Node n = (Node)o;
        if(n.pos > this.pos) return -1;
        if(n.pos == this.pos) return 0;
        return 1;
    }
}