#include <bits/stdc++.h>

typedef long long ll;
typedef long double ld;
using namespace std;

int main() {
    //ios_base::sync_with_stdio(false);
    //cout<<setprecision(20);
    int n;
    cin>>n;
    if(n==3){
        cout<<"2 5 63";
        return 0;
    }
    int k6=0,k2=0,k3=0,k4=0;
    cout<<"2 3 4 9 ";
    n-=4;
    k2++;
    k3+=2;
    k4++;
    if(n%2==1){
        cout<<"6 ";
        k6++;
        n--;
    }
    while(k2<5000&&n>0){
        cout<<k2*6+2<<" ";
        cout<<k4*6+4<<" ";
        k2++;
        k4++;
        n-=2;
    }
    while(k3<5000&&n>0){
        cout<<k3*6+3<<" ";
        k3++;
        cout<<k3*6+3<<" ";
        k3++;
        n-=2;
    }
    while(k6<5000&&n>0){
        cout<<k6*6+6<<" ";
        k6++;
        n--;
    }
    return 0;
}
