#include <stdio.h>

int main() {

    int n;

    while (scanf("%d", &n) != EOF) 
    {
        int i;
        for (i = 1; i <= 2; i++)//前两行
        {
            int j;
            for (j = 1; j <= i; j++)
            {
                printf("* ");
            }

            printf("\n");
        }

        int m;
        for (m = 1; m <= n - 3; m++)//中间的图案
        {
            printf("* ");

            int l;
            for (l = 1; l <= m; l++)
            {
                printf("  ");
            }

            printf("* \n");
        }

        int k;
        for (k = 1; k <= n; k++)//最后一行
        {
            printf("* ");
        }

        printf("\n");
    }

    return 0;
}