#include <stdio.h>

int main()
{
    int input, rowCount = 1, columnCount = 1;
    char blank = ' ', star = '*';
    scanf("%d", &input);
    while (rowCount < (input + 1))
    {
        while (columnCount <= (rowCount - 1))
        {
            printf("%c", blank);
            columnCount++;
        }
        while (columnCount <= (input + 1 - rowCount))
        {
            printf("%c", star);
            columnCount++;
        }
        if (rowCount != input)
        {
            printf("\n");
        }
        rowCount++;
        columnCount = 1;
    }
    return 0;
}