import operator



vals = eval(input())

nums = list(map(int, tuple(vals)))



def dump(a,b,c):

    if a == operator.add:

        a = '+'

    else:

        a = '-'

    if b == operator.add:

        b = '+'

    else:

        b = '-'

    if c == operator.add:

        c = '+'

    else:

        c = '-'

    print((vals[0] + a + vals[1] + b + vals[2] + c + vals[3] + '=7'))



for a in (operator.add, operator.sub):

    for b in (operator.add, operator.sub):

        for c in (operator.add, operator.sub):

            if c(b(a(nums[0], nums[1]), nums[2]), nums[3]) == 7:

                dump(a, b, c)

                exit(0)
nums = eval(input())



N = 3

for i in range(2**N):

    equation = ''

    for j in range(N):

        equation += nums[j]

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

            equation += '+'

        else:

            equation += '-'

    equation += nums[-1]

    if eval(equation) == 7:

        print((equation + '=7'))

        exit()
import operator

vals = eval(input())
nums = list(map(int, tuple(vals)))


def dump(a, b, c):
    if a == operator.add:
        a = "+"
    else:
        a = "-"
    if b == operator.add:
        b = "+"
    else:
        b = "-"
    if c == operator.add:
        c = "+"
    else:
        c = "-"
    print((vals[0] + a + vals[1] + b + vals[2] + c + vals[3] + "=7"))


for a in (operator.add, operator.sub):
    for b in (operator.add, operator.sub):
        for c in (operator.add, operator.sub):
            if c(b(a(nums[0], nums[1]), nums[2]), nums[3]) == 7:
                dump(a, b, c)
                exit(0)

nums = eval(input())
N = 3
for i in range(2**N):
    equation = ""
    for j in range(N):
        equation += nums[j]
        if (i >> j) & 1:
            equation += "+"
        else:
            equation += "-"
    equation += nums[-1]
    if eval(equation) == 7:
        print((equation + "=7"))
        exit()

-import operator - -vals = eval(input()) -nums = list(map(int, tuple(vals))) - - -def dump(a, b, c): -    if a == operator.add: -        a = "+" -    else: -        a = "-" -    if b == operator.add: -        b = "+" -    else: -        b = "-" -    if c == operator.add: -        c = "+" -    else: -        c = "-" -    print((vals[0] + a + vals[1] + b + vals[2] + c + vals[3] + "=7")) - - -for a in (operator.add, operator.sub): -    for b in (operator.add, operator.sub): -        for c in (operator.add, operator.sub): -            if c(b(a(nums[0], nums[1]), nums[2]), nums[3]) == 7: -                dump(a, b, c) -                exit(0) +nums = eval(input()) +N = 3 +for i in range(2**N): +    equation = "" +    for j in range(N): +        equation += nums[j] +        if (i >> j) & 1: +            equation += "+" +        else: +            equation += "-" +    equation += nums[-1] +    if eval(equation) == 7: +        print((equation + "=7")) +        exit()