#include <iostream>
using namespace std;

bool used[200000];

int main()
{
	int n;
	cin >> n;
	if (n == 3) {
		cout << "2 5 63\n";
		exit(0);
	}
	int sum = 0;
	int cur = 2;
	for (int i = 0; i < n - 2; ++i) {
		while ((cur % 2 != 0) && (cur % 3 != 0)) ++cur;
		cout << cur << " ";
		used[cur] = true;
		sum += cur++;
	}
	for (int i = cur; i <= 30000; ++i) {
		if ((i % 2 != 0) && (i % 3 != 0)) continue;
		if (used[i]) continue;
		for (int j = i + 1; j <= 30000; ++j) {
			if ((j % 2 != 0) && (j % 3 != 0)) continue;
			if ((sum + i + j) % 6 == 0) {
				cout << i << " " << j << "\n";
				exit(0);
			}
		}
	}
}