NumOfRows = int(input("Enter number of rows: "))

for i in range(NumOfRows, 1, -1):
    for space in range(0, NumOfRows-i):
        print("  ", end="")
    for j in range(i, 2*i-1):
        print("* ", end="")
    for j in range(1, i-1):
        print("* ", end="")
    print()