#include<iostream>
using namespace std;
int main()
{
int x;
cin>>x;
if(x%2==0){
x=x+1;
cout<<x<<endl;
for(int i=1;i<6;i++){
x=x+2;
cout<<x<<endl;
}
}
else if(x%2!=0){
cout<<x<<endl;
for(int i=1;i<6;i++){
x=x+2;
cout<<x<<endl;
}
}
return 0;
}