l=lambda y:'+'.join(map(lambda x:str(x).rjust(2),range(*sorted((y*y,y*y-~y))))) for i in range(1,10):print(' '*(9-i)+l(i)+'='+l(~i))