str_input = list(eval(input()))

for i in range(2**3):

    ope = ['-'] * 3

    siki = ''

    for j in range(3):

        if(i>>j)&1:

            ope[j] = '+'

    for moji, op in zip(str_input, ope+['']):

        siki +=(moji+op)

    ans = eval(siki)

    if ans == 7:

        print((siki + '=7'))

        break

moji = list(input())

x = len(moji) -1

for i in range(2**x):

    ope = ['-'] * 3

    formula = ''

    for j in range(x):

        if (i>>j)&1:

            ope[j] = '+'

    for mo,op in zip(moji, ope+['']):

        formula += (mo+op)

    if eval(formula) == 7:

        print(formula, '=7', sep='')

        break

str_input = list(eval(input()))
for i in range(2**3):
    ope = ["-"] * 3
    siki = ""
    for j in range(3):
        if (i >> j) & 1:
            ope[j] = "+"
    for moji, op in zip(str_input, ope + [""]):
        siki += moji + op
    ans = eval(siki)
    if ans == 7:
        print((siki + "=7"))
        break

moji = list(input())
x = len(moji) - 1
for i in range(2**x):
    ope = ["-"] * 3
    formula = ""
    for j in range(x):
        if (i >> j) & 1:
            ope[j] = "+"
    for mo, op in zip(moji, ope + [""]):
        formula += mo + op
    if eval(formula) == 7:
        print(formula, "=7", sep="")
        break

-str_input = list(eval(input())) -for i in range(2**3): +moji = list(input()) +x = len(moji) - 1 +for i in range(2**x): -    siki = "" -    for j in range(3): +    formula = "" +    for j in range(x): -    for moji, op in zip(str_input, ope + [""]): -        siki += moji + op -    ans = eval(siki) -    if ans == 7: -        print((siki + "=7")) +    for mo, op in zip(moji, ope + [""]): +        formula += mo + op +    if eval(formula) == 7: +        print(formula, "=7", sep="")