from itertools import product

A, B, C, D = list(eval(input()))

l = len(A)



for ops in product(["+", "-"], repeat=3):

  eq = A + ops[0] + B + ops[1] + C + ops[2] + D

  x = eval(eq)

  if x == 7:

    break

print((eq + "=7"))
import itertools

a,b,c,d = list(eval(input()))

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

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

  if eval(x) == 7:break

print((x+"=7"))
from itertools import product

A, B, C, D = list(eval(input()))
l = len(A)
for ops in product(["+", "-"], repeat=3):
    eq = A + ops[0] + B + ops[1] + C + ops[2] + D
    x = eval(eq)
    if x == 7:
        break
print((eq + "=7"))

import itertools

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

-from itertools import product +import itertools -A, B, C, D = list(eval(input())) -l = len(A) -for ops in product(["+", "-"], repeat=3): -    eq = A + ops[0] + B + ops[1] + C + ops[2] + D -    x = eval(eq) -    if x == 7: +a, b, c, d = list(eval(input())) +for i in itertools.product(["+", "-"], repeat=3): +    x = a + i[0] + b + i[1] + c + i[2] + d +    if eval(x) == 7: -print((eq + "=7")) +print((x + "=7"))