## KA = int(input("Type the pyramid amount:"))
## for i in range(1,KA+1):
##   print((KA-i)*" "+(1+(2*(i-1)))*"*")
##
##
##
##
#
##
##
#
KA = int(input("Type the pyramid amount:"))

for position in range(1, KA+1):
    print((position-1)*" "+"*")
for i in range(1,KA+1):
    print((KA-i)*" "+"*"+(1+(2*(i-1)))*" "+"*")





    

