N = eval(input())

for i in range(2 ** (len(N) - 1)):

    s = ''

    for n in N:

        s += n

        if len(s) != len(N) + 3:

            if i % 2 != 0:

                s += '+'

            else:

                s += '-'

        else:

            break

        i //= 2

    if eval(s) == 7:

        print((s + '=7'))

        break
S = eval(input())

op = ['+', '-']

for i in range(2 ** 3):

    T = S[0]

    for j in range(3):

        if i % 2 == 0:

            T += op[0]

        else:

            T += op[1]

        i //= 2

        T += S[j + 1]

    if eval(T) == 7:

        print((T + '=7'))

        break
N = eval(input())
for i in range(2 ** (len(N) - 1)):
    s = ""
    for n in N:
        s += n
        if len(s) != len(N) + 3:
            if i % 2 != 0:
                s += "+"
            else:
                s += "-"
        else:
            break
        i //= 2
    if eval(s) == 7:
        print((s + "=7"))
        break

S = eval(input())
op = ["+", "-"]
for i in range(2**3):
    T = S[0]
    for j in range(3):
        if i % 2 == 0:
            T += op[0]
        else:
            T += op[1]
        i //= 2
        T += S[j + 1]
    if eval(T) == 7:
        print((T + "=7"))
        break

-N = eval(input()) -for i in range(2 ** (len(N) - 1)): -    s = "" -    for n in N: -        s += n -        if len(s) != len(N) + 3: -            if i % 2 != 0: -                s += "+" -            else: -                s += "-" +S = eval(input()) +op = ["+", "-"] +for i in range(2**3): +    T = S[0] +    for j in range(3): +        if i % 2 == 0: +            T += op[0] -            break +            T += op[1] -    if eval(s) == 7: -        print((s + "=7")) +        T += S[j + 1] +    if eval(T) == 7: +        print((T + "=7"))