s = eval(input())

ans1=s[0]



def solve(i,tmp,ans):

  global ans1

  if i==3:

    if tmp==7:

      ans1=ans

      return True

    else:

      return False

  

  if solve(i+1,tmp+int(s[i+1]),ans+"+"+s[i+1]): return True

  if solve(i+1,tmp-int(s[i+1]),ans+"-"+s[i+1]): return True



if solve(0,int(s[0]),ans1):

  print((ans1+"=7"))
s = eval(input())



for bit in range(1<<3):

  ans=""

  for i in range(3):

    if bit & (1<<i):

      ans+="+"

    else:

      ans+="-"

  ans=s[0]+ans[0]+s[1]+ans[1]+s[2]+ans[2]+s[3]

  if eval(ans)==7:

    print((ans+"=7"))

    break
s = eval(input())
ans1 = s[0]


def solve(i, tmp, ans):
    global ans1
    if i == 3:
        if tmp == 7:
            ans1 = ans
            return True
        else:
            return False
    if solve(i + 1, tmp + int(s[i + 1]), ans + "+" + s[i + 1]):
        return True
    if solve(i + 1, tmp - int(s[i + 1]), ans + "-" + s[i + 1]):
        return True


if solve(0, int(s[0]), ans1):
    print((ans1 + "=7"))

s = eval(input())
for bit in range(1 << 3):
    ans = ""
    for i in range(3):
        if bit & (1 << i):
            ans += "+"
        else:
            ans += "-"
    ans = s[0] + ans[0] + s[1] + ans[1] + s[2] + ans[2] + s[3]
    if eval(ans) == 7:
        print((ans + "=7"))
        break

-ans1 = s[0] - - -def solve(i, tmp, ans): -    global ans1 -    if i == 3: -        if tmp == 7: -            ans1 = ans -            return True +for bit in range(1 << 3): +    ans = "" +    for i in range(3): +        if bit & (1 << i): +            ans += "+" -            return False -    if solve(i + 1, tmp + int(s[i + 1]), ans + "+" + s[i + 1]): -        return True -    if solve(i + 1, tmp - int(s[i + 1]), ans + "-" + s[i + 1]): -        return True - - -if solve(0, int(s[0]), ans1): -    print((ans1 + "=7")) +            ans += "-" +    ans = s[0] + ans[0] + s[1] + ans[1] + s[2] + ans[2] + s[3] +    if eval(ans) == 7: +        print((ans + "=7")) +        break