n=5
i=1
while i<=n:
    j=1
    while j<=5-i:
        print("",end="")
        j=j+1
    a=1
    while a<=i:
        print("*",end="")
        a=a+1
    print()
    i=i+1
i=4
while i>=1:
    print("*"*i)
    i=i-1





