#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <utility>
#include <vector>
using namespace std;
typedef long long ll;

#define rep(i, init, end) for(ll i = init; i < end; i++)
#define REP(i, init, end) for(ll i = init; i < end + 1; i++)
#define rev(i, end, init) for(ll i = init - 1; i >= end; i--)
#define REV(i, end, init) for(ll i = init; i >= end; i--)
#define PI 3.14159265359
#define EPS 0.0000000001
#define MOD 998244353
//cout << std::fixed << std::setprecision(15) << y << endl;


int main(){
    ll N;
    cin >> N;

    if(N == 3){
        cout << "6 10 15" << endl;
        return 0;
    }

    ll count = 0;
    ll i = 6;
    vector<ll> ans;
    while(count < N){
        if((i % 6 == 0 && i % 5 != 0) || (i % 10 == 0 && i % 3 != 0) || (i % 15 == 0 && i % 2 != 0) || (i % 30 == 0)){
            count++;
            ans.push_back(i);
        }
        i++;
    }

    rep(i, 0, ans.size()){
        if(i != 0){
            cout << " ";
        }
        cout << ans[i];
    }
    cout << endl;
    // cout << "size: " << ans.size() << endl;

    return 0;
}

#include<stdio.h>
static inline int IN(void)
{
  int x=0,f=1,c=getchar();while(c<48||c>57){if(c==45){f=-f;}c=getchar();}
  while(c>47&&c<58){x=x*10+c-48,c=getchar();}return f*x;
}
static inline void OUT(int x){if(x<0){putchar('-'),x=-x;}if(x>=10){OUT(x/10);}putchar(x-x/10*10+48);}
int main(void)
{
  int N=IN(),M=1,x=1;static int z[9994]={};
  while(N--)
  {
    x=6*M;if(x<=10000&&!z[x-6]){OUT(x);putchar(' ');z[x-6]=1;continue;}
    x=1155*M;if(x<=10000&&!z[x-6]){OUT(x);putchar(' ');z[x-6]=1;continue;}
    x=14*M;if(x<=10000&&!z[x-6]){OUT(x);putchar(' ');z[x-6]=1;continue;}
    x=22*M;if(x<=10000&&!z[x-6]){OUT(x);putchar(' ');z[x-6]=1;continue;}
    x=10*M;if(x<=10000&&!z[x-6]){OUT(x);putchar(' ');z[x-6]=1;continue;}
    M++;N++;
  }
}