import sys



s = eval(input())



a = int(s[0])

b = int(s[1])

c = int(s[2])

d = int(s[3])



ans = a

for i in range(2):

	if i == 0:

		ans += b

		s1 = '+'

	else:

		ans -= b

		s1 = '-'

	for j in range(2):

		if j == 0:

			ans += c

			s2 = '+'

		else:

			ans -= c

			s2 = '-'

		for k in range(2):

			if k == 0:

				ans += d

				s3 = '+'

			else:

				ans -= d

				s3 = '-'

			if ans == 7:

				print((s[0]+s1+s[1]+s2+s[2]+s3+s[3]+"=7"))

				sys.exit()

			else:

				if k == 0:

					ans -= d

				else:

					ans += d

		if j == 0:

			ans -= c

		else:

			ans += c

	if i == 0:

		ans -= b

	else:

		ans += b





import sys



s = eval(input())

n = 3



for i in range(2**(n)):

	op = ["-"]*3

	for j in range(n):

		if i & (1<<j):

			op[j] = "+"



	res = ""

	for a,b in zip(s,op+[""]):

		res += a+b

	if eval(res) == 7:

		print((res+'=7'))

		sys.exit()

import sys

s = eval(input())
a = int(s[0])
b = int(s[1])
c = int(s[2])
d = int(s[3])
ans = a
for i in range(2):
    if i == 0:
        ans += b
        s1 = "+"
    else:
        ans -= b
        s1 = "-"
    for j in range(2):
        if j == 0:
            ans += c
            s2 = "+"
        else:
            ans -= c
            s2 = "-"
        for k in range(2):
            if k == 0:
                ans += d
                s3 = "+"
            else:
                ans -= d
                s3 = "-"
            if ans == 7:
                print((s[0] + s1 + s[1] + s2 + s[2] + s3 + s[3] + "=7"))
                sys.exit()
            else:
                if k == 0:
                    ans -= d
                else:
                    ans += d
        if j == 0:
            ans -= c
        else:
            ans += c
    if i == 0:
        ans -= b
    else:
        ans += b

import sys

s = eval(input())
n = 3
for i in range(2 ** (n)):
    op = ["-"] * 3
    for j in range(n):
        if i & (1 << j):
            op[j] = "+"
    res = ""
    for a, b in zip(s, op + [""]):
        res += a + b
    if eval(res) == 7:
        print((res + "=7"))
        sys.exit()

-a = int(s[0]) -b = int(s[1]) -c = int(s[2]) -d = int(s[3]) -ans = a -for i in range(2): -    if i == 0: -        ans += b -        s1 = "+" -    else: -        ans -= b -        s1 = "-" -    for j in range(2): -        if j == 0: -            ans += c -            s2 = "+" -        else: -            ans -= c -            s2 = "-" -        for k in range(2): -            if k == 0: -                ans += d -                s3 = "+" -            else: -                ans -= d -                s3 = "-" -            if ans == 7: -                print((s[0] + s1 + s[1] + s2 + s[2] + s3 + s[3] + "=7")) -                sys.exit() -            else: -                if k == 0: -                    ans -= d -                else: -                    ans += d -        if j == 0: -            ans -= c -        else: -            ans += c -    if i == 0: -        ans -= b -    else: -        ans += b +n = 3 +for i in range(2 ** (n)): +    op = ["-"] * 3 +    for j in range(n): +        if i & (1 << j): +            op[j] = "+" +    res = "" +    for a, b in zip(s, op + [""]): +        res += a + b +    if eval(res) == 7: +        print((res + "=7")) +        sys.exit()