s=eval(input())

for i in range(1 << 3):

    ans=""

    for j in range(3):

        ans+=s[j]

        if (i>>j)& 1:

            ans+="+"

        else:

            ans+="-"

    ans+=s[-1]

    if eval(ans+"==7"):

        print((ans+"=7"))

        break
s=eval(input())

ans=""

import sys

for i in range(2**3):

    tmp=s[0]

    tmp_sum=(int(s[0]))

    for j in range(len(s)-1):

        

        if (i >> j) & 1:

            tmp+="+"

            tmp_sum+=int(s[j+1])

        else:

            tmp+="-"

            tmp_sum-=int(s[j+1])

        tmp+=s[j+1]

    # print(tmp,tmp_sum)

    if tmp_sum==7:

        print((tmp+"=7"))

        sys.exit()
s = eval(input())
for i in range(1 << 3):
    ans = ""
    for j in range(3):
        ans += s[j]
        if (i >> j) & 1:
            ans += "+"
        else:
            ans += "-"
    ans += s[-1]
    if eval(ans + "==7"):
        print((ans + "=7"))
        break

s = eval(input())
ans = ""
import sys

for i in range(2**3):
    tmp = s[0]
    tmp_sum = int(s[0])
    for j in range(len(s) - 1):
        if (i >> j) & 1:
            tmp += "+"
            tmp_sum += int(s[j + 1])
        else:
            tmp += "-"
            tmp_sum -= int(s[j + 1])
        tmp += s[j + 1]
    # print(tmp,tmp_sum)
    if tmp_sum == 7:
        print((tmp + "=7"))
        sys.exit()

-for i in range(1 << 3): -    ans = "" -    for j in range(3): -        ans += s[j] +ans = "" +import sys + +for i in range(2**3): +    tmp = s[0] +    tmp_sum = int(s[0]) +    for j in range(len(s) - 1): -            ans += "+" +            tmp += "+" +            tmp_sum += int(s[j + 1]) -            ans += "-" -    ans += s[-1] -    if eval(ans + "==7"): -        print((ans + "=7")) -        break +            tmp += "-" +            tmp_sum -= int(s[j + 1]) +        tmp += s[j + 1] +    # print(tmp,tmp_sum) +    if tmp_sum == 7: +        print((tmp + "=7")) +        sys.exit()