for i in range(n+1):
for j in range (n-i) :
print(end = " ")
for j in range (i + 1):
print("*", end = " ")
print()
height = 10
for row_level in range(height):
string = ''
for left_step in range(height - row_level):
string += ' '
string += '*'
for right_step in range(row_level * 2):
string += ' '
print(string + '*')
else:
string = ''
for i in range(height * 2 + 2):
string += '*'
print(string)