import itertools

s=eval(input())



moji = []

for i in s:

    moji.append(int(i))

ans = []

for j in itertools.product([1,-1], repeat=4):

    if moji[0]*j[0]+moji[1]*j[1]+moji[2]*j[2]+moji[3]*j[3] == 7:

        if j[0] == 1:

            ans.append(moji[0])

        else:

            ans.append('-')

            ans.append(moji[0])

        if j[1] == 1:

            ans.append('+')

            ans.append(moji[1])

        else:

            ans.append('-')

            ans.append(moji[1])

        if j[2] == 1:

            ans.append('+')

            ans.append(moji[2])

        else:

            ans.append('-')

            ans.append(moji[2])

        if j[3] == 1:

            ans.append('+')

            ans.append(moji[3])

        else:

            ans.append('-')

            ans.append(moji[3])

        ans.append('=7')

        print((''.join(map(str,ans))))

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

ans = []

for i in ['+', '-']:

    for j in ['+', '-']:

        for k in ['+', '-']:

            tmp = int(s[0])

            if i == '+':

                tmp += int(s[1])

            else:

                tmp -= int(s[1])

            if j == '+':

                tmp += int(s[2])

            else:

                tmp -= int(s[2])

            if k == '+':

                tmp += int(s[3])

            else:

                tmp -= int(s[3])

            if tmp == 7:

                ans = [s[0],i,s[1],j,s[2],k,s[3],'=7']

                break

print((''.join(map(str,ans))))
import itertools

s = eval(input())
moji = []
for i in s:
    moji.append(int(i))
ans = []
for j in itertools.product([1, -1], repeat=4):
    if moji[0] * j[0] + moji[1] * j[1] + moji[2] * j[2] + moji[3] * j[3] == 7:
        if j[0] == 1:
            ans.append(moji[0])
        else:
            ans.append("-")
            ans.append(moji[0])
        if j[1] == 1:
            ans.append("+")
            ans.append(moji[1])
        else:
            ans.append("-")
            ans.append(moji[1])
        if j[2] == 1:
            ans.append("+")
            ans.append(moji[2])
        else:
            ans.append("-")
            ans.append(moji[2])
        if j[3] == 1:
            ans.append("+")
            ans.append(moji[3])
        else:
            ans.append("-")
            ans.append(moji[3])
        ans.append("=7")
        print(("".join(map(str, ans))))
        exit()

s = list(eval(input()))
ans = []
for i in ["+", "-"]:
    for j in ["+", "-"]:
        for k in ["+", "-"]:
            tmp = int(s[0])
            if i == "+":
                tmp += int(s[1])
            else:
                tmp -= int(s[1])
            if j == "+":
                tmp += int(s[2])
            else:
                tmp -= int(s[2])
            if k == "+":
                tmp += int(s[3])
            else:
                tmp -= int(s[3])
            if tmp == 7:
                ans = [s[0], i, s[1], j, s[2], k, s[3], "=7"]
                break
print(("".join(map(str, ans))))

-import itertools - -s = eval(input()) -moji = [] -for i in s: -    moji.append(int(i)) +s = list(eval(input())) -for j in itertools.product([1, -1], repeat=4): -    if moji[0] * j[0] + moji[1] * j[1] + moji[2] * j[2] + moji[3] * j[3] == 7: -        if j[0] == 1: -            ans.append(moji[0]) -        else: -            ans.append("-") -            ans.append(moji[0]) -        if j[1] == 1: -            ans.append("+") -            ans.append(moji[1]) -        else: -            ans.append("-") -            ans.append(moji[1]) -        if j[2] == 1: -            ans.append("+") -            ans.append(moji[2]) -        else: -            ans.append("-") -            ans.append(moji[2]) -        if j[3] == 1: -            ans.append("+") -            ans.append(moji[3]) -        else: -            ans.append("-") -            ans.append(moji[3]) -        ans.append("=7") -        print(("".join(map(str, ans)))) -        exit() +for i in ["+", "-"]: +    for j in ["+", "-"]: +        for k in ["+", "-"]: +            tmp = int(s[0]) +            if i == "+": +                tmp += int(s[1]) +            else: +                tmp -= int(s[1]) +            if j == "+": +                tmp += int(s[2]) +            else: +                tmp -= int(s[2]) +            if k == "+": +                tmp += int(s[3]) +            else: +                tmp -= int(s[3]) +            if tmp == 7: +                ans = [s[0], i, s[1], j, s[2], k, s[3], "=7"] +                break +print(("".join(map(str, ans))))