abcd = str(eval(input()))

a = abcd[0]

b = abcd[1]

c = abcd[2]

d = abcd[3]



sign = ['+', '-']

for i in range(2):

    for j in range(2):

        for k in range(2):

            tmp = a + sign[i] + b + sign[j] + c + sign[k] + d  

            if eval(tmp) == 7:

                print((tmp+'=7'))

                exit()
abcd = list(eval(input()))

a, b, c, d = abcd

sign = ['+', '-']

for i in range(2**3):

    s = a

    for j in range(3):

        if (i>>j) & 1:

            s += sign[0]

        else:

            s += sign[1]

        s += abcd[j+1]

    if eval(s) == 7:

        print((s + "=7"))

        exit()
abcd = str(eval(input()))
a = abcd[0]
b = abcd[1]
c = abcd[2]
d = abcd[3]
sign = ["+", "-"]
for i in range(2):
    for j in range(2):
        for k in range(2):
            tmp = a + sign[i] + b + sign[j] + c + sign[k] + d
            if eval(tmp) == 7:
                print((tmp + "=7"))
                exit()

abcd = list(eval(input()))
a, b, c, d = abcd
sign = ["+", "-"]
for i in range(2**3):
    s = a
    for j in range(3):
        if (i >> j) & 1:
            s += sign[0]
        else:
            s += sign[1]
        s += abcd[j + 1]
    if eval(s) == 7:
        print((s + "=7"))
        exit()

-abcd = str(eval(input())) -a = abcd[0] -b = abcd[1] -c = abcd[2] -d = abcd[3] +abcd = list(eval(input())) +a, b, c, d = abcd -for i in range(2): -    for j in range(2): -        for k in range(2): -            tmp = a + sign[i] + b + sign[j] + c + sign[k] + d -            if eval(tmp) == 7: -                print((tmp + "=7")) -                exit() +for i in range(2**3): +    s = a +    for j in range(3): +        if (i >> j) & 1: +            s += sign[0] +        else: +            s += sign[1] +        s += abcd[j + 1] +    if eval(s) == 7: +        print((s + "=7")) +        exit()