#include<stdio.h>
#include<math.h>
int main()
{
int x,i;
scanf("%d",&x);
for(i =1; i < 100;i++)
{
if(x % 2 !=0)
{
printf("%d\n",x);
printf("%d\n",x+2);
printf("%d\n",x+4);
printf("%d\n",x+6);
printf("%d\n",x+8);
printf("%d\n",x+10);
break;
}
else
{
printf("%d\n",x+1);
printf("%d\n",x+3);
printf("%d\n",x+5);
printf("%d\n",x+7);
printf("%d\n",x+9);
printf("%d\n",x+11);
break;
}
}
}