#include <stdio.h>

int main()
{
    int i = 0;
    int n = 0;
    int j = 0;
    int tmp = 0;
    int t = 0;
    while (scanf("%d", &n) != EOF)
    {
        //先打印上半部分
        tmp = n;
        n = n + 1;
        for (i = 1; i <= n; i++)
        {
            for (j = 1; j <= n - i; j++)
            {
                printf(" ");
            }
            for (j = 1; j <= i ; j++)
            {
                printf("* ");
            }
            printf("\n");
        }
        //在打印下半部分
        for (i = 1; i < n; i++)
        {
            for (j = 1; j <= i; j++)
            {
                printf(" ");
            }
            for (j = 1; j <= tmp; j++)
            {
                printf("* ");
            }

            printf("\n");
            tmp--;
        }
    }
    return 0;
}