a=eval(input())

for i in ('+','-'):

  for j in ('+','-'):

    for k in ('+','-'):

      sm=a[0]+i+a[1]+j+a[2]+k+a[3]

      if eval(sm)==7:

        print((sm+'=7'))

        exit()
s=eval(input())

p=['+','-']

for i in range(8):

  t=s

  for j in range(3):

    t=t[:3-j]+p[(i>>j)&1]+t[3-j:]

  if eval(t)==7:

    print((t+'=7'))

    exit()
a = eval(input())
for i in ("+", "-"):
    for j in ("+", "-"):
        for k in ("+", "-"):
            sm = a[0] + i + a[1] + j + a[2] + k + a[3]
            if eval(sm) == 7:
                print((sm + "=7"))
                exit()

s = eval(input())
p = ["+", "-"]
for i in range(8):
    t = s
    for j in range(3):
        t = t[: 3 - j] + p[(i >> j) & 1] + t[3 - j :]
    if eval(t) == 7:
        print((t + "=7"))
        exit()

-a = eval(input()) -for i in ("+", "-"): -    for j in ("+", "-"): -        for k in ("+", "-"): -            sm = a[0] + i + a[1] + j + a[2] + k + a[3] -            if eval(sm) == 7: -                print((sm + "=7")) -                exit() +s = eval(input()) +p = ["+", "-"] +for i in range(8): +    t = s +    for j in range(3): +        t = t[: 3 - j] + p[(i >> j) & 1] + t[3 - j :] +    if eval(t) == 7: +        print((t + "=7")) +        exit()