#include<cstdio>
using namespace std;
int num[8]={6,10,12,15,18,20,24,30};
int n;
int main()
{
    scanf("%d",&n);
    printf("6 10 15 ");
    for(int i=1;i+3<=n;i++)
    {
        int lun=(i-1)/8+1;
        printf("%d ",lun*30+num[(i-1)%8]);
    }
    return 0;
}
#include <bits/stdc++.h>
using namespace std;
int main() {
	int n;
	cin >> n;
	vector<int> ans = {6, 10, 15};
	int x = 16;
	while (ans.size() < n) {
		if (x % 6 == 0 || x % 10 == 0 || x % 15 == 0) {
			ans.push_back(x);
		}
		x++;
	}
	for (int i = 0; i < n; i++) {
		cout << ans[i];
		if (i == n - 1)
			cout << endl;
		else
			cout << " ";
	}
	return 0;
}