s = input()

p = list(map(int,s))



for x in range(2**3):

    ans = p[0]

    for y in range(3):

        if (x>>y)&1:

            ans += p[y+1]

        else:

            ans -= p[y+1]

    if ans == 7:

        kotae = format(x,"#05b")



kotae = kotae[2:]

for z in range(3):

    print(str(p[z]),end="")

    if kotae[-z-1] == str(1):

        print("+",end="")

    else:

        print("-",end="")



print(str(p[3]) + "=7" )

#他の人の回答例　後から見返す用



A = eval(input())

n = len(A)-1

for i in range(2**n):

  pn = ['-']*n

  for j in range(n):

    if ((i>>j)&1):

      pn[n-1-j] = '+'

  ans = A[0]+pn[0]+A[1]+pn[1]+A[2]+pn[2]+A[3]

  

  if eval(ans) == 7:

    print((ans+'=7'))

    break



    
s = input()
p = list(map(int, s))
for x in range(2**3):
    ans = p[0]
    for y in range(3):
        if (x >> y) & 1:
            ans += p[y + 1]
        else:
            ans -= p[y + 1]
    if ans == 7:
        kotae = format(x, "#05b")
kotae = kotae[2:]
for z in range(3):
    print(str(p[z]), end="")
    if kotae[-z - 1] == str(1):
        print("+", end="")
    else:
        print("-", end="")
print(str(p[3]) + "=7")

# 他の人の回答例　後から見返す用
A = eval(input())
n = len(A) - 1
for i in range(2**n):
    pn = ["-"] * n
    for j in range(n):
        if (i >> j) & 1:
            pn[n - 1 - j] = "+"
    ans = A[0] + pn[0] + A[1] + pn[1] + A[2] + pn[2] + A[3]
    if eval(ans) == 7:
        print((ans + "=7"))
        break

-s = input() -p = list(map(int, s)) -for x in range(2**3): -    ans = p[0] -    for y in range(3): -        if (x >> y) & 1: -            ans += p[y + 1] -        else: -            ans -= p[y + 1] -    if ans == 7: -        kotae = format(x, "#05b") -kotae = kotae[2:] -for z in range(3): -    print(str(p[z]), end="") -    if kotae[-z - 1] == str(1): -        print("+", end="") -    else: -        print("-", end="") -print(str(p[3]) + "=7") +# 他の人の回答例　後から見返す用 +A = eval(input()) +n = len(A) - 1 +for i in range(2**n): +    pn = ["-"] * n +    for j in range(n): +        if (i >> j) & 1: +            pn[n - 1 - j] = "+" +    ans = A[0] + pn[0] + A[1] + pn[1] + A[2] + pn[2] + A[3] +    if eval(ans) == 7: +        print((ans + "=7")) +        break