N = list(input())

num = list(map(lambda x: int(x) , N))

for i in range(8):

    sum_val = num[0]

    for j in range(3):

        if i >> j & 1:

            sum_val += num[j + 1]

        else:

            sum_val -= num[j + 1]

    if sum_val == 7:

        print(num[0] , end = '')

        for j in range(3):

            if i >> j & 1:

                print("+" , end = '')

            else:

                print("-",end = '')

            print(num[j + 1] , end = '')

        print('=7')

        exit()

S = list(eval(input()))

opt = ['-', '+']

for i in range(8):

    now = S[0]

    for j in range(3):

        if i >> j & 1:

            now += opt[1]

        else:

            now += opt[0]

        now += S[j + 1]

    if eval(now) == 7:

        print((now + "=7"))

        exit()



N = list(input())
num = list(map(lambda x: int(x), N))
for i in range(8):
    sum_val = num[0]
    for j in range(3):
        if i >> j & 1:
            sum_val += num[j + 1]
        else:
            sum_val -= num[j + 1]
    if sum_val == 7:
        print(num[0], end="")
        for j in range(3):
            if i >> j & 1:
                print("+", end="")
            else:
                print("-", end="")
            print(num[j + 1], end="")
        print("=7")
        exit()

S = list(eval(input()))
opt = ["-", "+"]
for i in range(8):
    now = S[0]
    for j in range(3):
        if i >> j & 1:
            now += opt[1]
        else:
            now += opt[0]
        now += S[j + 1]
    if eval(now) == 7:
        print((now + "=7"))
        exit()

-N = list(input()) -num = list(map(lambda x: int(x), N)) +S = list(eval(input())) +opt = ["-", "+"] -    sum_val = num[0] +    now = S[0] -            sum_val += num[j + 1] +            now += opt[1] -            sum_val -= num[j + 1] -    if sum_val == 7: -        print(num[0], end="") -        for j in range(3): -            if i >> j & 1: -                print("+", end="") -            else: -                print("-", end="") -            print(num[j + 1], end="") -        print("=7") +            now += opt[0] +        now += S[j + 1] +    if eval(now) == 7: +        print((now + "=7"))