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