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

inline int read()
{
    int x=0,f=1;
    char c=getchar();
    while(c<'0'||c>'9')
    {
        if(c=='-') f=-1;
        c=getchar();
    }
    while(c>='0'&&c<='9')
    {
        x=x*10+c-'0';
        c=getchar();
    }
    return x*f;
}

int n;
int re[10005],a[2505];

int main()
{
	int len=0;
	for(int i=1;i<=5000;i++)
		if(i%3==0 || i%5==0 || i%7==0 || i%11==0)
			re[++len]=i;
	n=read();
	a[n]=3*5*7*11;
	for(int i=1;i<=n-1;i++) a[i]=2*re[i];
	for(int i=1;i<=n;i++) printf("%d ",a[i]);
	printf("\n");
    return 0;
}
//#include <boost/multiprecision/cpp_int.hpp>
#include "bits/stdc++.h"
//using namespace boost::multiprecision; 
using namespace std;
#define MODULO 1000000007
#define PI 3.14159265359
typedef long long int ll;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin>>n;
     cout<<"6 10 15 ";
    int x=n-3;
    int xd=0;
    if(x==0)
    return 0;
    for(int i=16;i<=10000;i++)
    { 
      if(i%6==0 || i%10==0 || i%15==0)
      {
          cout<<i<<" ";
          xd++;
      }
      if(xd==x)
      break;
    }
    return 0;
}