*ABCD, = list(map(int, list(eval(input()))))

N = 3

op = []

for bit in range(0, 1<<N):

    tmp = []

    for i in range(N):

        if (bit>>i) & 1:

            tmp.append("+")

        else:

            tmp.append("-")

    

    ans = ABCD[0]

    for i in range(N):

        if tmp[i] == "+":

            ans += ABCD[i+1]

        else:

            ans -= ABCD[i+1]

    if ans == 7:

        break



A = str(ABCD[0])

for i in range(N):

    A += str(tmp[i])

    A += str(ABCD[i+1])

A += "=7"

print(A)
import sys

input = sys.stdin.readline

sys.setrecursionlimit(10 ** 7)



A, B, C, D = list(map(int, list(input()[:-1])))



n = 3

ops = []

for bit in range(0, 1<<n):

    op = ["-"]*n

    for j in range(n):

        if bit>>j & 1:

            op[j] = "+"

    ops.append(op)



for op in ops:

    a, b, c, d = A, B, C, D

    if op[0] == "-":

        b = -B

    if op[1] == "-":

        c = -C

    if op[2] == "-":

        d = -D

    if a + b + c + d == 7:

        ans = op

        break

ans = str(a)

for num in (b, c, d):

    if num >= 0:

        ans += "+"

        ans += str(num)

    else:

        ans += str(num)

ans += "=7"

print(ans)





        
(*ABCD,) = list(map(int, list(eval(input()))))
N = 3
op = []
for bit in range(0, 1 << N):
    tmp = []
    for i in range(N):
        if (bit >> i) & 1:
            tmp.append("+")
        else:
            tmp.append("-")
    ans = ABCD[0]
    for i in range(N):
        if tmp[i] == "+":
            ans += ABCD[i + 1]
        else:
            ans -= ABCD[i + 1]
    if ans == 7:
        break
A = str(ABCD[0])
for i in range(N):
    A += str(tmp[i])
    A += str(ABCD[i + 1])
A += "=7"
print(A)

import sys

input = sys.stdin.readline
sys.setrecursionlimit(10**7)
A, B, C, D = list(map(int, list(input()[:-1])))
n = 3
ops = []
for bit in range(0, 1 << n):
    op = ["-"] * n
    for j in range(n):
        if bit >> j & 1:
            op[j] = "+"
    ops.append(op)
for op in ops:
    a, b, c, d = A, B, C, D
    if op[0] == "-":
        b = -B
    if op[1] == "-":
        c = -C
    if op[2] == "-":
        d = -D
    if a + b + c + d == 7:
        ans = op
        break
ans = str(a)
for num in (b, c, d):
    if num >= 0:
        ans += "+"
        ans += str(num)
    else:
        ans += str(num)
ans += "=7"
print(ans)

-(*ABCD,) = list(map(int, list(eval(input())))) -N = 3 -op = [] -for bit in range(0, 1 << N): -    tmp = [] -    for i in range(N): -        if (bit >> i) & 1: -            tmp.append("+") -        else: -            tmp.append("-") -    ans = ABCD[0] -    for i in range(N): -        if tmp[i] == "+": -            ans += ABCD[i + 1] -        else: -            ans -= ABCD[i + 1] -    if ans == 7: +import sys + +input = sys.stdin.readline +sys.setrecursionlimit(10**7) +A, B, C, D = list(map(int, list(input()[:-1]))) +n = 3 +ops = [] +for bit in range(0, 1 << n): +    op = ["-"] * n +    for j in range(n): +        if bit >> j & 1: +            op[j] = "+" +    ops.append(op) +for op in ops: +    a, b, c, d = A, B, C, D +    if op[0] == "-": +        b = -B +    if op[1] == "-": +        c = -C +    if op[2] == "-": +        d = -D +    if a + b + c + d == 7: +        ans = op -A = str(ABCD[0]) -for i in range(N): -    A += str(tmp[i]) -    A += str(ABCD[i + 1]) -A += "=7" -print(A) +ans = str(a) +for num in (b, c, d): +    if num >= 0: +        ans += "+" +        ans += str(num) +    else: +        ans += str(num) +ans += "=7" +print(ans)