n = eval(input())

op_cnt = len(n) - 1

for i in range(2 ** op_cnt):

    op = ['-'] * op_cnt

    for j in range(op_cnt):

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

            op[op_cnt - 1 - j] = '+'

    

    formula = ''

    for p_n, p_o in zip(n, op + ['']):

        formula += p_n + p_o

    result = eval(formula)

    if result == 7:

        print((formula + '=7'))

        break
import sys



readline = sys.stdin.readline

readall = sys.stdin.read

ns = lambda: readline().rstrip()

ni = lambda: int(readline().rstrip())

nm = lambda: map(int, readline().split(''))

nl = lambda: list(map(int, readline().split()))

prl = lambda x: print(*x ,sep='\n')



a = ns()

for i in range(2**3):

    ans = '{}'.format(a[-1])

    for j in range(3):

        if (i >> j) & 1:

            ans = a[-1-(j+1)] + '+' + ans

        else:

            ans = a[-1-(j+1)] + '-' + ans

    if eval(ans) == 7:

        print(ans+'=7')

        break

n = eval(input())
op_cnt = len(n) - 1
for i in range(2**op_cnt):
    op = ["-"] * op_cnt
    for j in range(op_cnt):
        if (i >> j) & 1:
            op[op_cnt - 1 - j] = "+"
    formula = ""
    for p_n, p_o in zip(n, op + [""]):
        formula += p_n + p_o
    result = eval(formula)
    if result == 7:
        print((formula + "=7"))
        break

import sys

readline = sys.stdin.readline
readall = sys.stdin.read
ns = lambda: readline().rstrip()
ni = lambda: int(readline().rstrip())
nm = lambda: map(int, readline().split(""))
nl = lambda: list(map(int, readline().split()))
prl = lambda x: print(*x, sep="\n")
a = ns()
for i in range(2**3):
    ans = "{}".format(a[-1])
    for j in range(3):
        if (i >> j) & 1:
            ans = a[-1 - (j + 1)] + "+" + ans
        else:
            ans = a[-1 - (j + 1)] + "-" + ans
    if eval(ans) == 7:
        print(ans + "=7")
        break

-n = eval(input()) -op_cnt = len(n) - 1 -for i in range(2**op_cnt): -    op = ["-"] * op_cnt -    for j in range(op_cnt): +import sys + +readline = sys.stdin.readline +readall = sys.stdin.read +ns = lambda: readline().rstrip() +ni = lambda: int(readline().rstrip()) +nm = lambda: map(int, readline().split("")) +nl = lambda: list(map(int, readline().split())) +prl = lambda x: print(*x, sep="\n") +a = ns() +for i in range(2**3): +    ans = "{}".format(a[-1]) +    for j in range(3): -            op[op_cnt - 1 - j] = "+" -    formula = "" -    for p_n, p_o in zip(n, op + [""]): -        formula += p_n + p_o -    result = eval(formula) -    if result == 7: -        print((formula + "=7")) +            ans = a[-1 - (j + 1)] + "+" + ans +        else: +            ans = a[-1 - (j + 1)] + "-" + ans +    if eval(ans) == 7: +        print(ans + "=7")