n = [int(x) for x in eval(input())]

op_cnt = len(n) - 1

for i in range(1 << op_cnt):

    op = ['-'] * op_cnt

    for j in range(op_cnt):

        if (i >> j) & 1:

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

    formula = "{}{}{}{}{}{}{}".format(n[0], op[0], n[1], op[1], n[2], op[2], n[3])

    if eval(formula) == 7:

        print((formula + '=7'))

        break

s = eval(input())

n = len(s) - 1

for i in range(1 << n):

    p_or_m = ['-'] * n

    for j in range(n):

        if i >> j & 1:

            p_or_m[n-j-1] = '+'

    

    formula = ''

    for k in range(n):

        formula += s[k] + p_or_m[k]

    formula += s[3]

    if  eval(formula) == 7:

        print((formula + '=7'))

        exit()
n = [int(x) for x in eval(input())]
op_cnt = len(n) - 1
for i in range(1 << op_cnt):
    op = ["-"] * op_cnt
    for j in range(op_cnt):
        if (i >> j) & 1:
            op[op_cnt - 1 - j] = "+"
    formula = "{}{}{}{}{}{}{}".format(n[0], op[0], n[1], op[1], n[2], op[2], n[3])
    if eval(formula) == 7:
        print((formula + "=7"))
        break

s = eval(input())
n = len(s) - 1
for i in range(1 << n):
    p_or_m = ["-"] * n
    for j in range(n):
        if i >> j & 1:
            p_or_m[n - j - 1] = "+"
    formula = ""
    for k in range(n):
        formula += s[k] + p_or_m[k]
    formula += s[3]
    if eval(formula) == 7:
        print((formula + "=7"))
        exit()

-n = [int(x) for x in eval(input())] -op_cnt = len(n) - 1 -for i in range(1 << op_cnt): -    op = ["-"] * op_cnt -    for j in range(op_cnt): -        if (i >> j) & 1: -            op[op_cnt - 1 - j] = "+" -    formula = "{}{}{}{}{}{}{}".format(n[0], op[0], n[1], op[1], n[2], op[2], n[3]) +s = eval(input()) +n = len(s) - 1 +for i in range(1 << n): +    p_or_m = ["-"] * n +    for j in range(n): +        if i >> j & 1: +            p_or_m[n - j - 1] = "+" +    formula = "" +    for k in range(n): +        formula += s[k] + p_or_m[k] +    formula += s[3] -        break +        exit()