S = list(eval(input()))



for i in range(8):

    pq = str(S[0])

    ans = int(S[0])

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

    for j in range(3):

        if l[j] == '1':

            ans += int(S[j+1])

            pq += '+'+str(S[j+1])

        else:

            ans -= int(S[j+1])

            pq += '-'+str(S[j+1])

    if ans == 7:

        pq += '=7'

        print(pq)

        exit()

S = list(eval(input()))

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



for i in range(2 ** 3):

    p = S[0]

    for j in range(3):

        if ((i >> j) & 1):

            p -= S[j+1]

        else:

            p += S[j+1]

    if p == 7:

        ans = str(S[0])

        for j in range(3):

            if ((i >> j) & 1):

                ans += '-'+str(S[j+1])

            else:

                ans += '+'+str(S[j+1])

        ans += '=7'

        print(ans)

        break

S = list(eval(input()))
for i in range(8):
    pq = str(S[0])
    ans = int(S[0])
    l = bin(i)[2:].zfill(3)
    for j in range(3):
        if l[j] == "1":
            ans += int(S[j + 1])
            pq += "+" + str(S[j + 1])
        else:
            ans -= int(S[j + 1])
            pq += "-" + str(S[j + 1])
    if ans == 7:
        pq += "=7"
        print(pq)
        exit()

S = list(eval(input()))
S = [int(i) for i in S]
for i in range(2**3):
    p = S[0]
    for j in range(3):
        if (i >> j) & 1:
            p -= S[j + 1]
        else:
            p += S[j + 1]
    if p == 7:
        ans = str(S[0])
        for j in range(3):
            if (i >> j) & 1:
                ans += "-" + str(S[j + 1])
            else:
                ans += "+" + str(S[j + 1])
        ans += "=7"
        print(ans)
        break

-for i in range(8): -    pq = str(S[0]) -    ans = int(S[0]) -    l = bin(i)[2:].zfill(3) +S = [int(i) for i in S] +for i in range(2**3): +    p = S[0] -        if l[j] == "1": -            ans += int(S[j + 1]) -            pq += "+" + str(S[j + 1]) +        if (i >> j) & 1: +            p -= S[j + 1] -            ans -= int(S[j + 1]) -            pq += "-" + str(S[j + 1]) -    if ans == 7: -        pq += "=7" -        print(pq) -        exit() +            p += S[j + 1] +    if p == 7: +        ans = str(S[0]) +        for j in range(3): +            if (i >> j) & 1: +                ans += "-" + str(S[j + 1]) +            else: +                ans += "+" + str(S[j + 1]) +        ans += "=7" +        print(ans) +        break