print("enter a number ")
a=int(input())
for i in range(1,a+1):
print (' ' * (a - i), '* ' * i)
if i==a:
for b in range(1,a+1):
print (' ' * (b), '* ' * (a - b) )
print("enter a number ")
a=int(input())
for i in range(1,a+1):
print (' ' * (a - i), '* ' * i)
if i==a:
for b in range(1,a+1):
print (' ' * (b), '* ' * (a - b) )