import sys

import itertools

a,b,c,d=[i for i in eval(input())]

op=["+","-"]

for i in itertools.product(op,repeat=3):

  ev=a+i[0]+b+i[1]+c+i[2]+d

  if eval(ev)==7:

    print((ev+"=7"))

    sys.exit()
S = eval(input())



def saiki(i,s = S[0]):

    if i == 3:

        if eval(s) == 7:

            print((str(s) + "=7"))

            exit()

        else:

            return            

    saiki(i + 1, s + "+" + S[i+1])

    saiki(i + 1, s + "-" + S[i+1])



saiki(0)

import sys
import itertools

a, b, c, d = [i for i in eval(input())]
op = ["+", "-"]
for i in itertools.product(op, repeat=3):
    ev = a + i[0] + b + i[1] + c + i[2] + d
    if eval(ev) == 7:
        print((ev + "=7"))
        sys.exit()

S = eval(input())


def saiki(i, s=S[0]):
    if i == 3:
        if eval(s) == 7:
            print((str(s) + "=7"))
            exit()
        else:
            return
    saiki(i + 1, s + "+" + S[i + 1])
    saiki(i + 1, s + "-" + S[i + 1])


saiki(0)

-import sys -import itertools +S = eval(input()) -a, b, c, d = [i for i in eval(input())] -op = ["+", "-"] -for i in itertools.product(op, repeat=3): -    ev = a + i[0] + b + i[1] + c + i[2] + d -    if eval(ev) == 7: -        print((ev + "=7")) -        sys.exit() + +def saiki(i, s=S[0]): +    if i == 3: +        if eval(s) == 7: +            print((str(s) + "=7")) +            exit() +        else: +            return +    saiki(i + 1, s + "+" + S[i + 1]) +    saiki(i + 1, s + "-" + S[i + 1]) + + +saiki(0)