#include <bits/stdc++.h>
using namespace std;

const int bound = 10000;

bool visited[10010];

int main(){
	int N; cin >> N;
	cout << 6 << " " << 10 << " " << 15;

	N -= 3;

	for(int j = 12; j <= bound; j += 6){
		if(!visited[j] && N > 0){
			cout << " " << j;
			visited[j] = true;
			N--;
		}
	}

	for(int j = 20; j <= bound; j += 10){
		if(!visited[j] && N > 0){
			cout << " " << j;
			visited[j] = true;
			N--;
		}
	}

	for(int j = 30; j <= bound; j += 15){
		if(!visited[j] && N > 0){
			cout << " " << j;
			visited[j] = true;
			N--;
		}
	}

	cout << '\n';
}
#include <cstdio>
using namespace std;
int n,cnt,ans[10010];
int main()
{
	scanf("%d",&n);
	if(n==3)
	{
		printf("6 10 15");
		return 0;
	}
	for(int i=1;i<=10000;i++)
		if(i%10==0||i%15==0||i%6==0)
			ans[++cnt]=i;
	printf("%d %d %d ",6,10,15);
	for(int i=1;i<=n;i++)
	{
		if(ans[i]==6||ans[i]==10||ans[i]==15)
			continue;
		printf("%d ",ans[i]);
	}
//	printf("%d",cnt);
}