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

for i in range(2**3):

    ans =["+", "+", "+"]

    for j in range(3):

        if (i>>j) & 1:

            ans[j] = "-"

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

        print((A+ans[0]+B+ans[1]+C+ans[2]+D+'=7'))

        break
import itertools

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

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

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

        print((A+i[0]+B+i[1]+C+i[2]+D+'=7'))

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

import itertools

A, B, C, D = eval(input())
for i in itertools.product(["+", "-"], repeat=3):
    if eval(A + i[0] + B + i[1] + C + i[2] + D) == 7:
        print((A + i[0] + B + i[1] + C + i[2] + D + "=7"))
        exit()

+import itertools + -for i in range(2**3): -    ans = ["+", "+", "+"] -    for j in range(3): -        if (i >> j) & 1: -            ans[j] = "-" -    if eval(A + ans[0] + B + ans[1] + C + ans[2] + D) == 7: -        print((A + ans[0] + B + ans[1] + C + ans[2] + D + "=7")) -        break +for i in itertools.product(["+", "-"], repeat=3): +    if eval(A + i[0] + B + i[1] + C + i[2] + D) == 7: +        print((A + i[0] + B + i[1] + C + i[2] + D + "=7")) +        exit()