from itertools import zip_longest



abcd = eval(input())



for i in range(0, 8):

	signs = bin(i)[2:].zfill(3).replace("1", "+").replace("0", "-")

	formula = "".join("".join(s) for s in zip_longest(abcd, signs, fillvalue=""))

	if eval(formula) == 7:

		print((formula+"=7"))

		exit()

abcd = eval(input())



for i in range(1<<3):

	formula = abcd[0]

	for j in range(3):

		formula += "+-"[(i>>j)%2]

		formula += abcd[j+1]

	if eval(formula) == 7:

		print((formula + "=7"))

		exit()
from itertools import zip_longest

abcd = eval(input())
for i in range(0, 8):
    signs = bin(i)[2:].zfill(3).replace("1", "+").replace("0", "-")
    formula = "".join("".join(s) for s in zip_longest(abcd, signs, fillvalue=""))
    if eval(formula) == 7:
        print((formula + "=7"))
        exit()

abcd = eval(input())
for i in range(1 << 3):
    formula = abcd[0]
    for j in range(3):
        formula += "+-"[(i >> j) % 2]
        formula += abcd[j + 1]
    if eval(formula) == 7:
        print((formula + "=7"))
        exit()

-from itertools import zip_longest - -for i in range(0, 8): -    signs = bin(i)[2:].zfill(3).replace("1", "+").replace("0", "-") -    formula = "".join("".join(s) for s in zip_longest(abcd, signs, fillvalue="")) +for i in range(1 << 3): +    formula = abcd[0] +    for j in range(3): +        formula += "+-"[(i >> j) % 2] +        formula += abcd[j + 1]