<gh_stars>0
for i in range (1,6):
        for j in range (1,-i):
                print(' ',end=" ")
        for j in range (1,i):
                print(j,end=" ")
        for i in range (i,0,-1):
                print(i,end=" ")
                print("\n")    

for i in range (1,6):
        for j in range (1,-i):
                print(' ',end=" ")
        for j in range (1,i):
                print(j,end=" ")
        for i in range (i,0,-1):
                print(i,end=" ")
                print("\n")