a, b, c = [int(input(i))**2 for i in ['a = ', 'b = ', 'c = ']] print("%d + %d + %d = %d" % (a, b, c, a+b+c))