'''
Created on Apr 23, 2019

@author: facebook
'''
#def f(n,ch='x'):
##    x=(2*n)-1
 #   for i in range(1,n+1):
  #      print''*(x-i)+'*'+''x
  
  
#for i in range(0, 5):
#    for j in range(5, i, -1):
#        print("* ")
  
  
#def f(n=5,ch='*'):
#    for i in range(1,n+1):
 #       print ' '*(n-i)+'*'*i
#f()

# n=5
# for i in range(1,n):
#     for j in range(1,i+1):
#         print i 
#         print(" ")



#n = 5
#for row in range(1, n):
 #   for i in range(1, row + 1):
  #      print(i)
   # print(" ")
   
for i in range(5):
    print"*"*(i+1)
    
   
n=5   
for i in range(1,n):
    print" "*(n-i)+"*"*i