#include<stdio.h>
int main() {
    int r, c, n;
    while (scanf("%d", &n) != EOF) {
        for (r = 0; r <= n + 1; r++) {//倒直角
            for (c = 0; c < n + 1 - r; c++) {
                printf("%-2c", '*');
            }
            if(r!=n+1)
            printf("\n");
        }
        for (r = 1; r <= n; r++) {//部分正三角
            for (c = 0; c < r+1; c++) {
                printf("%-2c", '*');
            }
            printf("\n");
        }
    }
    return 0;
}