N = list(input())

N = [int(i) for i in N]

for i in range(2**3):

    cur = bin(i)[2::].zfill(3)

    c = N[0]

    n = []

    for i in range(3):

        if cur[i]=='0':

            n.append('+')

            c += N[i+1]

        else:

            n.append('-')

            c -= N[i+1]

    if c==7:

        m = '='

        print(N[0],n[0],N[1],n[1],N[2],n[2],N[3],m,c,sep=(''))

        break

#ABC079 C bit全探索

A, B, C, D = eval(input())

for i in range(2**3):

    op = ['+']*3

    for j in range(3):

        if (i >> j) & 1:

            op[j]='-'

    if eval(A+op[0]+B+op[1]+C+op[2]+D) ==7:

        print((A+op[0]+B+op[1]+C+op[2]+D+'=7' ))

        break
N = list(input())
N = [int(i) for i in N]
for i in range(2**3):
    cur = bin(i)[2::].zfill(3)
    c = N[0]
    n = []
    for i in range(3):
        if cur[i] == "0":
            n.append("+")
            c += N[i + 1]
        else:
            n.append("-")
            c -= N[i + 1]
    if c == 7:
        m = "="
        print(N[0], n[0], N[1], n[1], N[2], n[2], N[3], m, c, sep=(""))
        break

# ABC079 C bit全探索
A, B, C, D = eval(input())
for i in range(2**3):
    op = ["+"] * 3
    for j in range(3):
        if (i >> j) & 1:
            op[j] = "-"
    if eval(A + op[0] + B + op[1] + C + op[2] + D) == 7:
        print((A + op[0] + B + op[1] + C + op[2] + D + "=7"))
        break

-N = list(input()) -N = [int(i) for i in N] +# ABC079 C bit全探索 +A, B, C, D = eval(input()) -    cur = bin(i)[2::].zfill(3) -    c = N[0] -    n = [] -    for i in range(3): -        if cur[i] == "0": -            n.append("+") -            c += N[i + 1] -        else: -            n.append("-") -            c -= N[i + 1] -    if c == 7: -        m = "=" -        print(N[0], n[0], N[1], n[1], N[2], n[2], N[3], m, c, sep=("")) +    op = ["+"] * 3 +    for j in range(3): +        if (i >> j) & 1: +            op[j] = "-" +    if eval(A + op[0] + B + op[1] + C + op[2] + D) == 7: +        print((A + op[0] + B + op[1] + C + op[2] + D + "=7"))