A, B, C, D = [int(c) for c in eval(input())]



expressions = [

    "{}+{}+{}+{}",

    "{}+{}+{}-{}",

    "{}+{}-{}+{}",

    "{}-{}+{}+{}",

    "{}-{}-{}+{}",

    "{}-{}+{}-{}",

    "{}+{}-{}-{}",

    "{}-{}-{}-{}",

]



for exp in expressions:

    exp = exp.format(A, B, C, D)

    if eval(exp) == 7:

        print((exp + "=7"))

        break

S = eval(input())

A = S[0]

B = S[1]

C = S[2]

D = S[3]

for i in range(2 ** 3):

    op1 = "+" if i & (2 ** 0) else "-"

    op2 = "+" if i & (2 ** 1) else "-"

    op3 = "+" if i & (2 ** 2) else "-"

    formula = "{}{}{}{}{}{}{}".format(A, op1, B, op2, C, op3, D)

    ans = eval(formula)

    if ans == 7:

        print(("{}=7".format(formula)))

        break

A, B, C, D = [int(c) for c in eval(input())]
expressions = [
    "{}+{}+{}+{}",
    "{}+{}+{}-{}",
    "{}+{}-{}+{}",
    "{}-{}+{}+{}",
    "{}-{}-{}+{}",
    "{}-{}+{}-{}",
    "{}+{}-{}-{}",
    "{}-{}-{}-{}",
]
for exp in expressions:
    exp = exp.format(A, B, C, D)
    if eval(exp) == 7:
        print((exp + "=7"))
        break

S = eval(input())
A = S[0]
B = S[1]
C = S[2]
D = S[3]
for i in range(2**3):
    op1 = "+" if i & (2**0) else "-"
    op2 = "+" if i & (2**1) else "-"
    op3 = "+" if i & (2**2) else "-"
    formula = "{}{}{}{}{}{}{}".format(A, op1, B, op2, C, op3, D)
    ans = eval(formula)
    if ans == 7:
        print(("{}=7".format(formula)))
        break

-A, B, C, D = [int(c) for c in eval(input())] -expressions = [ -    "{}+{}+{}+{}", -    "{}+{}+{}-{}", -    "{}+{}-{}+{}", -    "{}-{}+{}+{}", -    "{}-{}-{}+{}", -    "{}-{}+{}-{}", -    "{}+{}-{}-{}", -    "{}-{}-{}-{}", -] -for exp in expressions: -    exp = exp.format(A, B, C, D) -    if eval(exp) == 7: -        print((exp + "=7")) +S = eval(input()) +A = S[0] +B = S[1] +C = S[2] +D = S[3] +for i in range(2**3): +    op1 = "+" if i & (2**0) else "-" +    op2 = "+" if i & (2**1) else "-" +    op3 = "+" if i & (2**2) else "-" +    formula = "{}{}{}{}{}{}{}".format(A, op1, B, op2, C, op3, D) +    ans = eval(formula) +    if ans == 7: +        print(("{}=7".format(formula)))