#include <bits/stdc++.h>

using namespace std;

#ifdef __local_leywar
#include <debug/debugger.h>
#endif

#define int long long
#define endl '\n'

const int INF = 2e9,
		  MOD = 1e9+7,
		  INFLL = 1e18;

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

	int n;
	cin >> n;

	int cnt = 3;
	cout << 6 << ' ' << 10 << ' ' << 15 << ' ' ; 

	for(int i = 1 ; i <= 10000 and cnt < n ; i++)
	{
		if((i % 6 == 0 or i % 10 == 0 or i % 15 == 0) and (i != 6 and i != 10 and i != 15))
		{
			cout << i << ' ' ;
			cnt++;
		}
	}

	return 0;
}
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < n; i++)
using ll = long long;
const ll INF = 1LL << 30;
using pll = pair<string, ll>;
using Graph = vector<vector<int>>;
int main() {
  int N;
  cin >> N;
  if(N == 3) {
    cout << 6 << " " << 10 << " " << 15 << endl;
    return 0;
  }
  vector<int> S(16);
  S = {6, 10, 12, 15, 18, 20, 24, 30, 36, 40, 42, 45, 48, 50, 54, 60};
  rep(i, N) {
    cout << S[i%16] << " ";
    S[i%16] += 60;
  }
  cout << endl;
}