import itertools

n = eval(input())

a, b, c, d = n



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

    if eval(a + i + b + j + c + k + d) == 7:

        print((a+i+b+j+c+k+d + "=7"))

        exit()

from itertools import product

s = eval(input())

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



P = product([1, -1], repeat=3)



def convert(integer):

    if integer == 1:

        return "+"

    elif integer == -1:

        return "-"



for o1, o2, o3 in P:

    if A + B * o1 + C * o2 + D * o3 == 7:

        print((str(A) + convert(o1) + str(B) + convert(o2) + str(C) + convert(o3) + str(D) + "=7"))

        exit()
import itertools

n = eval(input())
a, b, c, d = n
for i, j, k in itertools.product(["+", "-"], repeat=3):
    if eval(a + i + b + j + c + k + d) == 7:
        print((a + i + b + j + c + k + d + "=7"))
        exit()

from itertools import product

s = eval(input())
A, B, C, D = int(s[0]), int(s[1]), int(s[2]), int(s[3])
P = product([1, -1], repeat=3)


def convert(integer):
    if integer == 1:
        return "+"
    elif integer == -1:
        return "-"


for o1, o2, o3 in P:
    if A + B * o1 + C * o2 + D * o3 == 7:
        print(
            (
                str(A)
                + convert(o1)
                + str(B)
                + convert(o2)
                + str(C)
                + convert(o3)
                + str(D)
                + "=7"
            )
        )
        exit()

-import itertools +from itertools import product -n = eval(input()) -a, b, c, d = n -for i, j, k in itertools.product(["+", "-"], repeat=3): -    if eval(a + i + b + j + c + k + d) == 7: -        print((a + i + b + j + c + k + d + "=7")) +s = eval(input()) +A, B, C, D = int(s[0]), int(s[1]), int(s[2]), int(s[3]) +P = product([1, -1], repeat=3) + + +def convert(integer): +    if integer == 1: +        return "+" +    elif integer == -1: +        return "-" + + +for o1, o2, o3 in P: +    if A + B * o1 + C * o2 + D * o3 == 7: +        print( +            ( +                str(A) +                + convert(o1) +                + str(B) +                + convert(o2) +                + str(C) +                + convert(o3) +                + str(D) +                + "=7" +            ) +        )