from collections import defaultdict

import sys,heapq,bisect,math,itertools,string,queue,datetime

sys.setrecursionlimit(10**8)

INF = float('inf')

mod = 10**9+7

eps = 10**-7

def inpl(): return list(map(int, input().split()))

def inpl_s(): return list(input().split())



li = list(map(int,list(eval(input()))))



for flag in itertools.product([0,1], repeat=3):

	tmp = li[0]

	for i,fl in enumerate(flag):

		if fl:

			tmp += li[i+1]

		else:

			tmp -= li[i+1]



	if tmp == 7:

		ans = ''

		for i in range(3):

			ans = ans + str(li[i])

			if flag[i]:

				ans = ans + '+'

			else:

				ans = ans + '-'

		ans = ans + str(li[3]) + '=7'

		break



print(ans)



import itertools



nn = eval(input())

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

    tmp = "".join([s1 + s2 for (s1, s2) in zip(nn, ss)]) + nn[-1]

    if eval(tmp) == 7:

        print((tmp + "=7"))

        exit()

from collections import defaultdict
import sys, heapq, bisect, math, itertools, string, queue, datetime

sys.setrecursionlimit(10**8)
INF = float("inf")
mod = 10**9 + 7
eps = 10**-7


def inpl():
    return list(map(int, input().split()))


def inpl_s():
    return list(input().split())


li = list(map(int, list(eval(input()))))
for flag in itertools.product([0, 1], repeat=3):
    tmp = li[0]
    for i, fl in enumerate(flag):
        if fl:
            tmp += li[i + 1]
        else:
            tmp -= li[i + 1]
    if tmp == 7:
        ans = ""
        for i in range(3):
            ans = ans + str(li[i])
            if flag[i]:
                ans = ans + "+"
            else:
                ans = ans + "-"
        ans = ans + str(li[3]) + "=7"
        break
print(ans)

import itertools

nn = eval(input())
for ss in itertools.product(["+", "-"], repeat=3):
    tmp = "".join([s1 + s2 for (s1, s2) in zip(nn, ss)]) + nn[-1]
    if eval(tmp) == 7:
        print((tmp + "=7"))
        exit()

-from collections import defaultdict -import sys, heapq, bisect, math, itertools, string, queue, datetime +import itertools -sys.setrecursionlimit(10**8) -INF = float("inf") -mod = 10**9 + 7 -eps = 10**-7 - - -def inpl(): -    return list(map(int, input().split())) - - -def inpl_s(): -    return list(input().split()) - - -li = list(map(int, list(eval(input())))) -for flag in itertools.product([0, 1], repeat=3): -    tmp = li[0] -    for i, fl in enumerate(flag): -        if fl: -            tmp += li[i + 1] -        else: -            tmp -= li[i + 1] -    if tmp == 7: -        ans = "" -        for i in range(3): -            ans = ans + str(li[i]) -            if flag[i]: -                ans = ans + "+" -            else: -                ans = ans + "-" -        ans = ans + str(li[3]) + "=7" -        break -print(ans) +nn = eval(input()) +for ss in itertools.product(["+", "-"], repeat=3): +    tmp = "".join([s1 + s2 for (s1, s2) in zip(nn, ss)]) + nn[-1] +    if eval(tmp) == 7: +        print((tmp + "=7")) +        exit()