S = eval(input())

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

    work = S

    for j in range(1 ,len(S)):

        if i >> (j - 1) & 1:

            work = work[:2 * j - 1] + "+" + work[2 * j - 1:]

        else:

            work = work[:2 * j - 1] + "-" + work[2 * j - 1:]

    if eval(work) == 7:

        print(("{0}=7".format(work)))

        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 = eval(input())
for i in range(2 ** len(S) - 1):
    work = S
    for j in range(1, len(S)):
        if i >> (j - 1) & 1:
            work = work[: 2 * j - 1] + "+" + work[2 * j - 1 :]
        else:
            work = work[: 2 * j - 1] + "-" + work[2 * j - 1 :]
    if eval(work) == 7:
        print(("{0}=7".format(work)))
        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 = eval(input()) -for i in range(2 ** len(S) - 1): -    work = S -    for j in range(1, len(S)): -        if i >> (j - 1) & 1: -            work = work[: 2 * j - 1] + "+" + work[2 * j - 1 :] +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] -            work = work[: 2 * j - 1] + "-" + work[2 * j - 1 :] -    if eval(work) == 7: -        print(("{0}=7".format(work))) +            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")