#include<stdio.h>
int main()
{
int n = 0, i = 0, j = 0;
while (~scanf("%d", &n))
{
for (i = 1; i <= n; i++)
{
for (j = 1; j <= n; j++)
{
if (i == j)
printf("*");
else if (j==n+1-i)
printf("*");
else
printf(" ");
}
printf("\n");
}
}
return 0;
}