#include <stdio.h>

int main() {

    int n = 0;//整数

    while (scanf("%d", &n) != EOF) 
    { 
       int i = 0;

       for (i = 1; i <= n; i++)//中间之前的图案
       {
            int j = 0;

            for (j = n + 1; j >= i; j--)
            {
                printf("* ");
            }

            printf("\n");
       }

        int k = 0;

        for (k = 1; k <= n + 1; k++)//中间之后的图案(包括中间)
        {
            int l = 0;

            for (l = 1; l <= k; l++)
            {
                printf("* ");
            }

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