import math
h = int(input("Podaj wysokość: "))

for i in range(1,h+1):
    for j in range(1,math.floor((h-i)/2)):
        print(" ",end="")
    for j in range(1,math.floor(h/2-i/2)):
        print("*", end="")
    for j in range(1,math.floor((h-i)/2)):
        print(" ",end="")
    print("\n")
