print 'Lab03_2a'
i = 1
for i in range(6):
   for j in range(i+1):
       print j+1,
   print '\n',



print '\n\n'
print 'Lab03_2b'

k = 1
for k in range(6):
   for l in range(6-k):
       print l+1,
   print '\n',



print '\n\n'
print 'Lab03_2c'
g=1
for g in range(8):
    for d in range(7-g):
        print ' ',
    for r in range(g,1,-1):
        print r-1,
    print


print '\n\n'
print 'Lab03_2d'
q=1
for q in range(7):
    for w in range(6-q):
        print w+1,
    print 
    for y in range(q+1):
        print ' ',


print '\n\n'
print 'Lab03_2e ERROOOOOOR!!!'

u=1
for u in range(7):
    for b in range(6-u):
        print ' ',
    for p in range(u,1,-1):
        print p-1,
    #for m in range(u):
     #   print u
    print
        



        
    
