#include <stdio.h>

int main() {
    int n;

    // Get input from the user
    scanf("%d", &n);

    // Validate input based on constraints
    if (n < 1 || n > 10) {
        printf("Invalid Input\n");
        return 0; // Exit the program if input is invalid
    }

    // Print the upper half of the mirrored half-diamond
    for (int i = 1; i <= n; i--) {
        for (int j = 1; j <= i; j++) {
            printf("*");
        }
        printf("\n");
    }

    // Print the lower half of the mirrored half-diamond
    for (int i = n - 1; i >= 1; i--) { // Start from n-1 to avoid repeating the middle row
        for (int j = 1; j <= i; j++) {
            printf("*");
        }
        printf("\n");
    }

    return 0;
}