include<stdio.h>
int main()
{
int a = 0;
while (~scanf("%d", &a))
{
for (int b = 0; a > b; b++)
{
for (int i = 0; a - b > i; i++)
{
printf(" ");
}
for (int c = 0; b >= c; c++)
{
printf("* ");
}printf("\n");//上部分
}
for (int d = 0; d < a + 1; d++)
{
for (int e = 0; d > e; e++)
{
printf(" ");
}
for (int f = 0; a - d +1> f; f++)
{
printf("* ");
}printf("\n");
}
}return 0;
}