A,B,C,D=eval(input())

digits=3

op=[""]*digits

for i in range(1<<digits):

    for j in range(digits):

        if (i>>j)&1:

            op[j]="+"

        else:

            op[j]="-"

    if eval(A+op[0]+B+op[1]+C+op[2]+D)==7:

        print((A+op[0]+B+op[1]+C+op[2]+D+"=7"))

        break
ABCD=eval(input())

digits=3

ops=[""]*(digits+1)

for i in range(1<<digits):

    for j in range(digits):

        if (i>>j)&1:

            ops[j]="+"

        else:

            ops[j]="-"

    evals=""

    for num,op in zip(ABCD,ops):

        evals+=num+op

    if eval(evals)==7:

        print((evals+"=7"))

        break
A, B, C, D = eval(input())
digits = 3
op = [""] * digits
for i in range(1 << digits):
    for j in range(digits):
        if (i >> j) & 1:
            op[j] = "+"
        else:
            op[j] = "-"
    if eval(A + op[0] + B + op[1] + C + op[2] + D) == 7:
        print((A + op[0] + B + op[1] + C + op[2] + D + "=7"))
        break

ABCD = eval(input())
digits = 3
ops = [""] * (digits + 1)
for i in range(1 << digits):
    for j in range(digits):
        if (i >> j) & 1:
            ops[j] = "+"
        else:
            ops[j] = "-"
    evals = ""
    for num, op in zip(ABCD, ops):
        evals += num + op
    if eval(evals) == 7:
        print((evals + "=7"))
        break

-A, B, C, D = eval(input()) +ABCD = eval(input()) -op = [""] * digits +ops = [""] * (digits + 1) -            op[j] = "+" +            ops[j] = "+" -            op[j] = "-" -    if eval(A + op[0] + B + op[1] + C + op[2] + D) == 7: -        print((A + op[0] + B + op[1] + C + op[2] + D + "=7")) +            ops[j] = "-" +    evals = "" +    for num, op in zip(ABCD, ops): +        evals += num + op +    if eval(evals) == 7: +        print((evals + "=7"))