#include<stdio.h>
int main() {
    int n;
    scanf("%d",&n);
    if(n%2==0){
        printf("Inavalid input");
        return 0;
    }
    int space = 0;
    int stars = n;
    for(int i = 0; i<(n/2) + 1;i++){
        for(int j = 0; j<spaces;j++){
            printf(" ");
        }
        for(int j = 0; j <stars;j++){
            printf("*");
        }
        printf("\n");
        spaces++;
        stars-= 2;
    }
}