#include <stdio.h>
#include <stdlib.h>
int main()
{
int a[16]= {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15},i,j;
scanf("%d",&j);
for(i=15; i>0; i--)
{
a[i]=a[i-1];
}
a[0]=j;
for(i=0;i<=15;i++)
printf("%d ",a[i]);
return 0;
}