# Arup Guha
# 6/14/2022
# Diamond Design

def main():

    # Get diamond size.
    n = int(input("Enter a positive odd integer for # of carats of your diamond.\n"))

    # Initial # of stars.
    stars = 1

    # Loop through # of spaces for each row.
    for sp in range(n//2, -1, -1):

        # Prints sp spaces.
        for j in range(sp):
            print(" ", end="")

        # Prints stars # of stars. 
        for j in range(stars):
            print("*", end="")

        # Go to the next line.
        print()

        # Update to be ready for next line.
        stars = stars + 2

    # Fix # of stars.
    stars = n - 2

    # Now spaces are counting up!
    for sp in range(1, n//2+1):

        # Prints sp spaces.
        for j in range(sp):
            print(" ", end="")

        # Prints stars # of stars. 
        for j in range(stars):
            print("*", end="")

        # Go to the next line.
        print()

        # Update to be ready for next line.
        stars = stars - 2        

# Run it!
main()

        
