i = 1
while i < 9:
j = 1
while j <= i:
print("%d*%d=%d" %(j, i, i*j),end='\t')
j = j + 1
# print(' ')
print('\n')
i = i + 1
i = 1
while i < 9:
j = 1
while j <= i:
print("%d*%d=%d" %(j, i, i*j),end='\t')
j = j + 1
# print(' ')
print('\n')
i = i + 1