import itertools





s = [int(i) for i in eval(input())]

for bs in itertools.product((0, 1), repeat=3):

    res = s[0]

    expr = [str(s[0])]

    for b, n in zip(bs, s[1:]):

        if b:

            res += n

            expr.append("+")

            expr.append(str(n))

        else:

            res -= n

            expr.append("-")

            expr.append(str(n))

    if res == 7:

        print(("".join(expr) + "=7"))

        break



ABCD = [int(s) for s in list(input())]

operators = ["-", "+"]

for bit in range(1 << 3):

    ops = [(bit >> i) & 1 for i in range(3)]

    tmp = ABCD[0]

    for op, val in zip(ops, ABCD[1:]):

        if op:

            tmp += val

        else:

            tmp -= val

    if tmp == 7:

        print(ABCD[0], end="")

        for op, val in zip(ops, ABCD[1:]):

            print(operators[op], val, sep="", end="")

        print("=7")

        exit()

import itertools

s = [int(i) for i in eval(input())]
for bs in itertools.product((0, 1), repeat=3):
    res = s[0]
    expr = [str(s[0])]
    for b, n in zip(bs, s[1:]):
        if b:
            res += n
            expr.append("+")
            expr.append(str(n))
        else:
            res -= n
            expr.append("-")
            expr.append(str(n))
    if res == 7:
        print(("".join(expr) + "=7"))
        break

ABCD = [int(s) for s in list(input())]
operators = ["-", "+"]
for bit in range(1 << 3):
    ops = [(bit >> i) & 1 for i in range(3)]
    tmp = ABCD[0]
    for op, val in zip(ops, ABCD[1:]):
        if op:
            tmp += val
        else:
            tmp -= val
    if tmp == 7:
        print(ABCD[0], end="")
        for op, val in zip(ops, ABCD[1:]):
            print(operators[op], val, sep="", end="")
        print("=7")
        exit()

-import itertools - -s = [int(i) for i in eval(input())] -for bs in itertools.product((0, 1), repeat=3): -    res = s[0] -    expr = [str(s[0])] -    for b, n in zip(bs, s[1:]): -        if b: -            res += n -            expr.append("+") -            expr.append(str(n)) +ABCD = [int(s) for s in list(input())] +operators = ["-", "+"] +for bit in range(1 << 3): +    ops = [(bit >> i) & 1 for i in range(3)] +    tmp = ABCD[0] +    for op, val in zip(ops, ABCD[1:]): +        if op: +            tmp += val -            res -= n -            expr.append("-") -            expr.append(str(n)) -    if res == 7: -        print(("".join(expr) + "=7")) -        break +            tmp -= val +    if tmp == 7: +        print(ABCD[0], end="") +        for op, val in zip(ops, ABCD[1:]): +            print(operators[op], val, sep="", end="") +        print("=7") +        exit()