s = input()

a = int(s[0])

b = int(s[1])

c = int(s[2])

d = int(s[3])



for i in range(2):

	for j in range(2):

		for k in range(2):

			x = a + b*(-1)**i + c*(-1)**j + d*(-1)**k

			if x == 7:

				print(a, end='')

				print('-' if i else '+', end='')

				print(b, end='')

				print('-' if j else '+', end='')

				print(c, end='')

				print('-' if k else '+', end='')

				print(d, end='')

				print("=7")

				exit()

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

for x in "+-":

	for y in "+-":

		for z in "+-":

			f = a + x + b + y + c + z + d

			if eval(f) == 7:

				print((f + "=7"))

				exit()
s = input()
a = int(s[0])
b = int(s[1])
c = int(s[2])
d = int(s[3])
for i in range(2):
    for j in range(2):
        for k in range(2):
            x = a + b * (-1) ** i + c * (-1) ** j + d * (-1) ** k
            if x == 7:
                print(a, end="")
                print("-" if i else "+", end="")
                print(b, end="")
                print("-" if j else "+", end="")
                print(c, end="")
                print("-" if k else "+", end="")
                print(d, end="")
                print("=7")
                exit()

a, b, c, d = eval(input())
for x in "+-":
    for y in "+-":
        for z in "+-":
            f = a + x + b + y + c + z + d
            if eval(f) == 7:
                print((f + "=7"))
                exit()

-s = input() -a = int(s[0]) -b = int(s[1]) -c = int(s[2]) -d = int(s[3]) -for i in range(2): -    for j in range(2): -        for k in range(2): -            x = a + b * (-1) ** i + c * (-1) ** j + d * (-1) ** k -            if x == 7: -                print(a, end="") -                print("-" if i else "+", end="") -                print(b, end="") -                print("-" if j else "+", end="") -                print(c, end="") -                print("-" if k else "+", end="") -                print(d, end="") -                print("=7") +a, b, c, d = eval(input()) +for x in "+-": +    for y in "+-": +        for z in "+-": +            f = a + x + b + y + c + z + d +            if eval(f) == 7: +                print((f + "=7"))