#include
int main()
{ int row,i,j,n;
scanf("%d",&n);
row=1;
while(row<=n)
{
for(i=1;i<=n-row;i++)
printf(" ");
for(j=1;j<=2*row-1;j++)
printf("*");
printf("\n");
row++;
}
row=1;
while(row<=n-1)
{
for(i=1;i<=row;i++)
printf(" ");
for(j=1;j<=2*(n-row)-1;j++)
printf("*");
printf("\n");
row++;
}
return 0;
}