s = list(str(eval(input())))



for i in range(2**3):

    t = ['']

    ans = int(s[0])

    for j in range(3):

        if (i >> j) & 1:

            t.append('+')

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

        else:

            t.append('-')

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

    if ans == 7:

        siki = ''

        for i in range(4):

            siki += t[i]+s[i]

        siki += '=7'

        print(siki)

        exit()
s = list(str(eval(input())))

import itertools

for p in itertools.product(('+', '-'), repeat=3):

    temp = [0]*7

    for i in range(4):

        temp[2*i] = s[i]

    for i in range(3):

        temp[2*i+1] = p[i]

    #print(temp)

    temp = ''.join(temp)

    if eval(temp) == 7:

        print((temp+'=7'))

        exit()

s = list(str(eval(input())))
for i in range(2**3):
    t = [""]
    ans = int(s[0])
    for j in range(3):
        if (i >> j) & 1:
            t.append("+")
            ans += int(s[j + 1])
        else:
            t.append("-")
            ans -= int(s[j + 1])
    if ans == 7:
        siki = ""
        for i in range(4):
            siki += t[i] + s[i]
        siki += "=7"
        print(siki)
        exit()

s = list(str(eval(input())))
import itertools

for p in itertools.product(("+", "-"), repeat=3):
    temp = [0] * 7
    for i in range(4):
        temp[2 * i] = s[i]
    for i in range(3):
        temp[2 * i + 1] = p[i]
    # print(temp)
    temp = "".join(temp)
    if eval(temp) == 7:
        print((temp + "=7"))
        exit()

-for i in range(2**3): -    t = [""] -    ans = int(s[0]) -    for j in range(3): -        if (i >> j) & 1: -            t.append("+") -            ans += int(s[j + 1]) -        else: -            t.append("-") -            ans -= int(s[j + 1]) -    if ans == 7: -        siki = "" -        for i in range(4): -            siki += t[i] + s[i] -        siki += "=7" -        print(siki) +import itertools + +for p in itertools.product(("+", "-"), repeat=3): +    temp = [0] * 7 +    for i in range(4): +        temp[2 * i] = s[i] +    for i in range(3): +        temp[2 * i + 1] = p[i] +    # print(temp) +    temp = "".join(temp) +    if eval(temp) == 7: +        print((temp + "=7"))