a,b,c,d = list(map(str, eval(input())))

op_list = ['+', '-']





for op1 in op_list:

    for op2 in op_list:

        for op3 in op_list:

            f = a+op1+b+op2+c+op3+d

            if eval(f) == 7:

                print((f+'=7'))

                exit()
abcd = eval(input())



op = ['+', '-']



for op1 in op:

    for op2 in op:

        for op3 in op:

            tmp_ans = abcd[0] + op1 + abcd[1] + op2 + abcd[2] + op3 + abcd[3]

            if eval(tmp_ans) == 7:

                print((tmp_ans+'=7'))

                exit()

                
a, b, c, d = list(map(str, eval(input())))
op_list = ["+", "-"]
for op1 in op_list:
    for op2 in op_list:
        for op3 in op_list:
            f = a + op1 + b + op2 + c + op3 + d
            if eval(f) == 7:
                print((f + "=7"))
                exit()

abcd = eval(input())
op = ["+", "-"]
for op1 in op:
    for op2 in op:
        for op3 in op:
            tmp_ans = abcd[0] + op1 + abcd[1] + op2 + abcd[2] + op3 + abcd[3]
            if eval(tmp_ans) == 7:
                print((tmp_ans + "=7"))
                exit()

-a, b, c, d = list(map(str, eval(input()))) -op_list = ["+", "-"] -for op1 in op_list: -    for op2 in op_list: -        for op3 in op_list: -            f = a + op1 + b + op2 + c + op3 + d -            if eval(f) == 7: -                print((f + "=7")) +abcd = eval(input()) +op = ["+", "-"] +for op1 in op: +    for op2 in op: +        for op3 in op: +            tmp_ans = abcd[0] + op1 + abcd[1] + op2 + abcd[2] + op3 + abcd[3] +            if eval(tmp_ans) == 7: +                print((tmp_ans + "=7"))