
# Lab03_2a

for i in range(7):
    for j in range(1,i+1):
        print j,
    print 

   
# Lab03_2b
print '\n'
for i in range(6,0,-1):
    for j in range(1,i+1):
        print j,
    print 

# Lab03_2c
print '\n'
for i in range(7):
    for s in range(6-i):
        print ' ',
    for j in range(i,0,-1):
        print j,
    print

# Lab03_2d
print '\n'
for i in range(6,0,-1):
    for j in range(1,i+1):
        print j,
    print
    for s in range(7-i):
        print ' ',

# Lab03_2e      
print '\n'

for i in range(6):
    for s in range(5-i):
        print ' ',
    for j in range(i,0,-1):
        print j,
    for k in range(2,i+1):
        print k,
    print




















