# coding: utf-8

import itertools

s='%d%s%d%s%d%s%d'

a,b,c,d=list(map(int,eval(input())))

for n in itertools.permutations(('+++---'),3):

    ans=s%(a,n[0],b,n[1],c,n[2],d)

    if eval(ans)==7:

        print((ans+'=7'))

        break
a,b,c,d=map(int,list(input()))

for i in range(2):

    for j in range(2):

        for k in range(2):

            if a+(i*2-1)*b+(j*2-1)*c+(k*2-1)*d==7:

                print(a,'-+'[i],b,'-+'[j],c,'-+'[k],d,'=7',sep='')

                exit()

# coding: utf-8
import itertools

s = "%d%s%d%s%d%s%d"
a, b, c, d = list(map(int, eval(input())))
for n in itertools.permutations(("+++---"), 3):
    ans = s % (a, n[0], b, n[1], c, n[2], d)
    if eval(ans) == 7:
        print((ans + "=7"))
        break

a, b, c, d = map(int, list(input()))
for i in range(2):
    for j in range(2):
        for k in range(2):
            if a + (i * 2 - 1) * b + (j * 2 - 1) * c + (k * 2 - 1) * d == 7:
                print(a, "-+"[i], b, "-+"[j], c, "-+"[k], d, "=7", sep="")
                exit()

-# coding: utf-8 -import itertools - -s = "%d%s%d%s%d%s%d" -a, b, c, d = list(map(int, eval(input()))) -    ans = s % (a, n[0], b, n[1], c, n[2], d) -    if eval(ans) == 7: -        print((ans + "=7")) -        break +a, b, c, d = map(int, list(input())) +for i in range(2): +    for j in range(2): +        for k in range(2): +            if a + (i * 2 - 1) * b + (j * 2 - 1) * c + (k * 2 - 1) * d == 7: +                print(a, "-+"[i], b, "-+"[j], c, "-+"[k], d, "=7", sep="") +                exit()