#include <stdio.h>
#define MN 20005
int n,a[MN],tot=5,MX=30001;
int main(){
	scanf("%d",&n); a[1]=2,a[2]=3;
	if(n==3){
		printf("2 5 63");
		return 0;
	}
	for(int i=3;i<=n;i++){
		MX--;
		while(MX%3!=0&&MX%2!=0)MX--;
		a[i]=MX; tot+=a[i];
	} tot-=a[n],tot-=a[n-1];
	while((tot+a[n-1]+a[n])%6!=0){
		a[n-1]=a[n];
		MX--;
		while(MX%3!=0&&MX%2!=0)MX--;
		a[n]=MX;
	}
	for(int i=1;i<=n;i++){
		printf("%d ",a[i]);
	}
}