a = list(eval(input()))





for x in range(8):

    s = ""

    sum = int(a[0])

    s += a[0]

    for i in range(3):

        if ( x & ( 1 << i)):

            sum += int(a[i+1])

            s += "+"

            s += a[i+1]

        else:

            sum -=int(a[i+1])

            s += "-"

            s += a[i+1]



    if sum == 7:

        print((s + "=7"))

        break    
S = eval(input())

N = 3





for x in range(1<<N):

    ans = S[0]

    sum = int(S[0])

    for i in range(N):

        if x & (1 << i):

            ans += "+" + S[i+1]

            sum += int(S[i+1])

        else:

            ans += "-" + S[i+1]

            sum -= int(S[i+1])

    if sum == 7:

        break



print((ans + "=7"))
a = list(eval(input()))
for x in range(8):
    s = ""
    sum = int(a[0])
    s += a[0]
    for i in range(3):
        if x & (1 << i):
            sum += int(a[i + 1])
            s += "+"
            s += a[i + 1]
        else:
            sum -= int(a[i + 1])
            s += "-"
            s += a[i + 1]
    if sum == 7:
        print((s + "=7"))
        break

S = eval(input())
N = 3
for x in range(1 << N):
    ans = S[0]
    sum = int(S[0])
    for i in range(N):
        if x & (1 << i):
            ans += "+" + S[i + 1]
            sum += int(S[i + 1])
        else:
            ans += "-" + S[i + 1]
            sum -= int(S[i + 1])
    if sum == 7:
        break
print((ans + "=7"))

-a = list(eval(input())) -for x in range(8): -    s = "" -    sum = int(a[0]) -    s += a[0] -    for i in range(3): +S = eval(input()) +N = 3 +for x in range(1 << N): +    ans = S[0] +    sum = int(S[0]) +    for i in range(N): -            sum += int(a[i + 1]) -            s += "+" -            s += a[i + 1] +            ans += "+" + S[i + 1] +            sum += int(S[i + 1]) -            sum -= int(a[i + 1]) -            s += "-" -            s += a[i + 1] +            ans += "-" + S[i + 1] +            sum -= int(S[i + 1]) -        print((s + "=7")) +print((ans + "=7"))