abcd = eval(input())



import itertools



for op in itertools.product(["+", "-"], repeat=3):

    sm = int(abcd[0])

    for i in range(3):

        if op[i] == "+":

            sm += int(abcd[i+1])

        else:

            sm -= int(abcd[i+1])

    if sm == 7:

        break



ans = str(abcd[0])

for i in range(3):

    ans += op[i] + abcd[i+1]

ans += "=7"

print(ans)

a, b, c, d = list(eval(input()))



import itertools



for ops in itertools.product(["+", "-"], repeat=3):

    eq = a + ops[0] + b + ops[1] + c + ops[2] + d

    sol = eval(eq)

    if sol == 7:

        break



ans = eq + "=7"

print(ans)

abcd = eval(input())
import itertools

for op in itertools.product(["+", "-"], repeat=3):
    sm = int(abcd[0])
    for i in range(3):
        if op[i] == "+":
            sm += int(abcd[i + 1])
        else:
            sm -= int(abcd[i + 1])
    if sm == 7:
        break
ans = str(abcd[0])
for i in range(3):
    ans += op[i] + abcd[i + 1]
ans += "=7"
print(ans)

a, b, c, d = list(eval(input()))
import itertools

for ops in itertools.product(["+", "-"], repeat=3):
    eq = a + ops[0] + b + ops[1] + c + ops[2] + d
    sol = eval(eq)
    if sol == 7:
        break
ans = eq + "=7"
print(ans)

-abcd = eval(input()) +a, b, c, d = list(eval(input())) -for op in itertools.product(["+", "-"], repeat=3): -    sm = int(abcd[0]) -    for i in range(3): -        if op[i] == "+": -            sm += int(abcd[i + 1]) -        else: -            sm -= int(abcd[i + 1]) -    if sm == 7: +for ops in itertools.product(["+", "-"], repeat=3): +    eq = a + ops[0] + b + ops[1] + c + ops[2] + d +    sol = eval(eq) +    if sol == 7: -ans = str(abcd[0]) -for i in range(3): -    ans += op[i] + abcd[i + 1] -ans += "=7" +ans = eq + "=7"