for i in range(9):
for j in range(i+1):
print(str(i+1)+"*"+str(j+1)+"="+str((i+1)*(j+1)),end =" ")
print("")