#program to print some pattern
x=1
while x<6:
    y=1
    while y<=x:
        print(y, end=' ')
        y=y+1
    print("")
    x=x+1
x=x-2
while x>=1:
    y=1
    while y<=x:
        print(y, end=' ')
        y=y+1
    print("")
    x=x-1


