import sys



S = eval(input())

op_cnt = len(S) - 1



for i in range(2 ** op_cnt):

    op = ["-"] * op_cnt

    for j in range(op_cnt):

        if ((i >> j) & 1):

            op[op_cnt - j - 1] = "+"

    formula = ""

    for p_n, p_o in zip(S, op + [""]):

        formula += (p_n + p_o)

    if eval(formula) == 7:

        print((formula + "=7"))

        sys.exit()
s = eval(input())

A, B, C, D = s[0], s[1], s[2], s[3]

ans = 7

siki = [[] for _ in range(2**3)]

for i in range(2 ** 3):

    for j in range(3):

        if (i >> j) & 1:

            siki[i].append("+")

        else:

            siki[i].append("-")



for o1, o2, o3 in siki:

    temp = A + o1 + B + o2 + C + o3 + D

    if eval(temp) == ans:

        print((temp + "=7"))

        break
import sys

S = eval(input())
op_cnt = len(S) - 1
for i in range(2**op_cnt):
    op = ["-"] * op_cnt
    for j in range(op_cnt):
        if (i >> j) & 1:
            op[op_cnt - j - 1] = "+"
    formula = ""
    for p_n, p_o in zip(S, op + [""]):
        formula += p_n + p_o
    if eval(formula) == 7:
        print((formula + "=7"))
        sys.exit()

s = eval(input())
A, B, C, D = s[0], s[1], s[2], s[3]
ans = 7
siki = [[] for _ in range(2**3)]
for i in range(2**3):
    for j in range(3):
        if (i >> j) & 1:
            siki[i].append("+")
        else:
            siki[i].append("-")
for o1, o2, o3 in siki:
    temp = A + o1 + B + o2 + C + o3 + D
    if eval(temp) == ans:
        print((temp + "=7"))
        break

-import sys - -S = eval(input()) -op_cnt = len(S) - 1 -for i in range(2**op_cnt): -    op = ["-"] * op_cnt -    for j in range(op_cnt): +s = eval(input()) +A, B, C, D = s[0], s[1], s[2], s[3] +ans = 7 +siki = [[] for _ in range(2**3)] +for i in range(2**3): +    for j in range(3): -            op[op_cnt - j - 1] = "+" -    formula = "" -    for p_n, p_o in zip(S, op + [""]): -        formula += p_n + p_o -    if eval(formula) == 7: -        print((formula + "=7")) -        sys.exit() +            siki[i].append("+") +        else: +            siki[i].append("-") +for o1, o2, o3 in siki: +    temp = A + o1 + B + o2 + C + o3 + D +    if eval(temp) == ans: +        print((temp + "=7")) +        break