S = list(eval(input()))

for i in range(2 ** 3):

    pm = ['-'] * 3

    for j in range(3):

        if i >> j & 1:

            pm[j] = '+'

    ans = [None] * 7

    ans[::2] = S

    ans[1::2] = pm

    ans = ''.join(ans)

    if eval(ans) == 7:

        print((ans + '=7'))

        break
n = eval(input())

for i in range(2 ** 3):

    op = ['+'] * 3

    for j in range(3):

        if i >> j & 1:

            op[j] = '-'

    f = [0] * 7

    f[::2] = n

    f[1::2] = op

    f = ''.join(f)

    if eval(f) == 7:

        print((''.join([f, '=7'])))

        exit()

S = list(eval(input()))
for i in range(2**3):
    pm = ["-"] * 3
    for j in range(3):
        if i >> j & 1:
            pm[j] = "+"
    ans = [None] * 7
    ans[::2] = S
    ans[1::2] = pm
    ans = "".join(ans)
    if eval(ans) == 7:
        print((ans + "=7"))
        break

n = eval(input())
for i in range(2**3):
    op = ["+"] * 3
    for j in range(3):
        if i >> j & 1:
            op[j] = "-"
    f = [0] * 7
    f[::2] = n
    f[1::2] = op
    f = "".join(f)
    if eval(f) == 7:
        print(("".join([f, "=7"])))
        exit()

-S = list(eval(input())) +n = eval(input()) -    pm = ["-"] * 3 +    op = ["+"] * 3 -            pm[j] = "+" -    ans = [None] * 7 -    ans[::2] = S -    ans[1::2] = pm -    ans = "".join(ans) -    if eval(ans) == 7: -        print((ans + "=7")) -        break +            op[j] = "-" +    f = [0] * 7 +    f[::2] = n +    f[1::2] = op +    f = "".join(f) +    if eval(f) == 7: +        print(("".join([f, "=7"]))) +        exit()