a=list(input())

for i in range(4):

  a[i]=int(a[i])

x=sum(a)-7

dict={0:'+',1:'-'}

ans=0

for i in range(2):

  for j in range(2):

    for k in range(2):

        if x==(i*a[1]+j*a[2]+k*a[3])*2:

          print(a[0],dict[i],a[1],dict[j],a[2],dict[k],a[3],'=7',sep='')

          ans=1

        if ans==1:

          break

    if ans==1:

      break

  if ans==1:

    break

import itertools

x=list(eval(input()))



for lst in itertools.product(['+','-'],repeat=3):

  sum=int(x[0])

  for i in range(3):

    if lst[i]=='+':

      sum+=int(x[i+1])

    else:

      sum-=int(x[i+1])

  if sum==7:

    print((x[0]+lst[0]+x[1]+lst[1]+x[2]+lst[2]+x[3]+'=7'))

    break
a = list(input())
for i in range(4):
    a[i] = int(a[i])
x = sum(a) - 7
dict = {0: "+", 1: "-"}
ans = 0
for i in range(2):
    for j in range(2):
        for k in range(2):
            if x == (i * a[1] + j * a[2] + k * a[3]) * 2:
                print(a[0], dict[i], a[1], dict[j], a[2], dict[k], a[3], "=7", sep="")
                ans = 1
            if ans == 1:
                break
        if ans == 1:
            break
    if ans == 1:
        break

import itertools

x = list(eval(input()))
for lst in itertools.product(["+", "-"], repeat=3):
    sum = int(x[0])
    for i in range(3):
        if lst[i] == "+":
            sum += int(x[i + 1])
        else:
            sum -= int(x[i + 1])
    if sum == 7:
        print((x[0] + lst[0] + x[1] + lst[1] + x[2] + lst[2] + x[3] + "=7"))
        break

-a = list(input()) -for i in range(4): -    a[i] = int(a[i]) -x = sum(a) - 7 -dict = {0: "+", 1: "-"} -ans = 0 -for i in range(2): -    for j in range(2): -        for k in range(2): -            if x == (i * a[1] + j * a[2] + k * a[3]) * 2: -                print(a[0], dict[i], a[1], dict[j], a[2], dict[k], a[3], "=7", sep="") -                ans = 1 -            if ans == 1: -                break -        if ans == 1: -            break -    if ans == 1: +import itertools + +x = list(eval(input())) +for lst in itertools.product(["+", "-"], repeat=3): +    sum = int(x[0]) +    for i in range(3): +        if lst[i] == "+": +            sum += int(x[i + 1]) +        else: +            sum -= int(x[i + 1]) +    if sum == 7: +        print((x[0] + lst[0] + x[1] + lst[1] + x[2] + lst[2] + x[3] + "=7"))