import numpy as np



S = input()

X = list(int(x) for x in S)





def test(Z):

    a = X[0]

    b = X[1] if Z[0] else -X[1]

    c = X[2] if Z[1] else -X[2]

    d = X[3] if Z[2] else -X[3]

    return a + b + c + d == 7





Y = [None] * (2 * len(X) - 1)

Y[::2] = X

for i in range(8):

    Z = [i & 1, i & 2, i & 4]

    if test(Z):

        Y[1::2] = ['+' if z else '-' for z in Z]

        break

print(*Y, sep='', end='=7\n')

import itertools



X = str(eval(input()))

for op in list(itertools.product(['+', '-'], repeat=3)):

    eq = X[0] + op[0] + X[1] + op[1] + X[2] + op[2] + X[3]

    result = eval(eq)

    if result == 7:

        break



print((eq + '=7'))

import numpy as np

S = input()
X = list(int(x) for x in S)


def test(Z):
    a = X[0]
    b = X[1] if Z[0] else -X[1]
    c = X[2] if Z[1] else -X[2]
    d = X[3] if Z[2] else -X[3]
    return a + b + c + d == 7


Y = [None] * (2 * len(X) - 1)
Y[::2] = X
for i in range(8):
    Z = [i & 1, i & 2, i & 4]
    if test(Z):
        Y[1::2] = ["+" if z else "-" for z in Z]
        break
print(*Y, sep="", end="=7\n")

import itertools

X = str(eval(input()))
for op in list(itertools.product(["+", "-"], repeat=3)):
    eq = X[0] + op[0] + X[1] + op[1] + X[2] + op[2] + X[3]
    result = eval(eq)
    if result == 7:
        break
print((eq + "=7"))

-import numpy as np +import itertools -S = input() -X = list(int(x) for x in S) - - -def test(Z): -    a = X[0] -    b = X[1] if Z[0] else -X[1] -    c = X[2] if Z[1] else -X[2] -    d = X[3] if Z[2] else -X[3] -    return a + b + c + d == 7 - - -Y = [None] * (2 * len(X) - 1) -Y[::2] = X -for i in range(8): -    Z = [i & 1, i & 2, i & 4] -    if test(Z): -        Y[1::2] = ["+" if z else "-" for z in Z] +X = str(eval(input())) +for op in list(itertools.product(["+", "-"], repeat=3)): +    eq = X[0] + op[0] + X[1] + op[1] + X[2] + op[2] + X[3] +    result = eval(eq) +    if result == 7: -print(*Y, sep="", end="=7\n") +print((eq + "=7"))