a,b,c,d=eval(input())

o='+-'

for i in o:

    for j in o:

        for k in o:

            s=a+i+b+j+c+k+d

            if eval(s)==7:

                print((s+'=7'))

                exit()
a,b,c,d=eval(input())

o='+-'

for i in range(8):

 s=a+o[i&1]+b+o[i&2>0]+c+o[i&4>0]+d

 if eval(s)==7:print((s+'=7'));exit()
a, b, c, d = eval(input())
o = "+-"
for i in o:
    for j in o:
        for k in o:
            s = a + i + b + j + c + k + d
            if eval(s) == 7:
                print((s + "=7"))
                exit()

a, b, c, d = eval(input())
o = "+-"
for i in range(8):
    s = a + o[i & 1] + b + o[i & 2 > 0] + c + o[i & 4 > 0] + d
    if eval(s) == 7:
        print((s + "=7"))
        exit()

-for i in o: -    for j in o: -        for k in o: -            s = a + i + b + j + c + k + d -            if eval(s) == 7: -                print((s + "=7")) -                exit() +for i in range(8): +    s = a + o[i & 1] + b + o[i & 2 > 0] + c + o[i & 4 > 0] + d +    if eval(s) == 7: +        print((s + "=7")) +        exit()