#include <bits/stdc++.h>

#define int long long

using namespace std;

#ifdef LOCAL 
#include "/media/brayand/BrayanD/debugger.h"
#else
#define db(...) false
#define dbl(...) false
#define dbg(...) false
#define dbm(...) false
#define dbs(...) false
#define dbas(...) false
#endif

const int MAXN = 10000;

int32_t main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(0);

    vector<int> vect;

    for(int i = 2 ; 2*3*i <= MAXN ; i++)
    {
    	if(i%5)
    	{
    		vect.push_back(2*3*i);
    	}
    }
    for(int i = 2 ; 2*5*i <= MAXN ; i++)
    {
    	if(i%3)
    	{
    		vect.push_back(2*5*i);
    	}
    }

    for(int i = 2 ; 3*5*i <= MAXN ; i++)
    {
    	if(i%2)
    	{
    		vect.push_back(3*5*i);
    	}
    }

    for(int i = 1 ; 2*3*5*i <= MAXN ; i++)
    {
    	vect.push_back(2*3*5*i);
    }

    int N;
    cin >> N;

    vector<int> ans;

    ans.push_back(2*3);
    ans.push_back(2*5);
    ans.push_back(3*5);

    N-=3;

    while(N--)
    {
    	ans.push_back(vect.back());
    	vect.pop_back();
    }

    for(auto x : ans)
    {
    	cout << x << " ";
    }
    cout << '\n';

    return 0;
}
#include <iostream>

using namespace std;

int N;

int main()
{
	cin >> N;
	cout << "6 10 15"; N -= 3;
	for (int i = 16; N; i++)
	{
		if (i % 6 == 0 || i % 10 == 0 || i % 15 == 0) {N--; cout << " " << i;}
	}
	cout << "\n";
	return 0;
}