#include <iostream>
#include<math.h>
#include<string>
using namespace std;
bool CheckPrime(int Nr);
int main(){
string Fin="2";
int n=0,Count=0,Iterator=2;
cin>>n;
while(Count<n && n>=1){
Iterator+=3;
if(CheckPrime(Iterator)){
Fin=Fin + " " + to_string((long double)Iterator);
Count++;
}
}
cout<<Fin;
system("pause");
return 0;
}
bool CheckPrime(int Nr){
bool IsPrime=true;
if(Nr!=2){
if(Nr%2!=0){
for(int x=3;x<=sqrt((double)Nr);x+=2){
if(Nr%x==0) IsPrime=false;
}
return IsPrime;
}else{
return false;
}
}else{
return true;
}
}