import sys

from pprint import pprint

from operator import add, sub



from collections import deque



s =[int(s_i) for s_i in sys.stdin.readline().strip()] 

# pprint(s)



for op1 in (add, sub):

    for op2 in (add, sub):

        for op3 in (add, sub):

             if op3 ( op2 ( op1 (s[0], s[1]), s[2]), s[3]) == 7:

                 tmp1 = "+" if op1 == add else "-"

                 tmp2 = "+" if op2 == add else "-"

                 tmp3 = "+" if op3 == add else "-"

                 print((str(s[0]) + tmp1 + str(s[1]) + tmp2 + str(s[2]) + tmp3 + str(s[3]) + "=7"))

                 sys.exit()
import sys



tmp = list(sys.stdin.readline().strip())

nums = list(map(int, tmp))



for a in range(2):

    for b in range(2):

        for c in range(2):

            tmp = nums[0]

            exp = str(nums[0])

            if a == 0:

                tmp += nums[1]

                exp += "+"

            else:

                tmp -= nums[1]

                exp += "-"

            exp += str(nums[1])

            if b == 0:

                tmp += nums[2]

                exp += "+"

            else:

                tmp -= nums[2]

                exp += "-"

            exp += str(nums[2])

            if c == 0:

                tmp += nums[3]

                exp += "+"

            else:

                tmp -= nums[3]

                exp += "-"

            exp += str(nums[3])

            if tmp == 7:

                print((exp + "=7"))

                sys.exit()
import sys
from pprint import pprint
from operator import add, sub
from collections import deque

s = [int(s_i) for s_i in sys.stdin.readline().strip()]
# pprint(s)
for op1 in (add, sub):
    for op2 in (add, sub):
        for op3 in (add, sub):
            if op3(op2(op1(s[0], s[1]), s[2]), s[3]) == 7:
                tmp1 = "+" if op1 == add else "-"
                tmp2 = "+" if op2 == add else "-"
                tmp3 = "+" if op3 == add else "-"
                print(
                    (
                        str(s[0])
                        + tmp1
                        + str(s[1])
                        + tmp2
                        + str(s[2])
                        + tmp3
                        + str(s[3])
                        + "=7"
                    )
                )
                sys.exit()

import sys

tmp = list(sys.stdin.readline().strip())
nums = list(map(int, tmp))
for a in range(2):
    for b in range(2):
        for c in range(2):
            tmp = nums[0]
            exp = str(nums[0])
            if a == 0:
                tmp += nums[1]
                exp += "+"
            else:
                tmp -= nums[1]
                exp += "-"
            exp += str(nums[1])
            if b == 0:
                tmp += nums[2]
                exp += "+"
            else:
                tmp -= nums[2]
                exp += "-"
            exp += str(nums[2])
            if c == 0:
                tmp += nums[3]
                exp += "+"
            else:
                tmp -= nums[3]
                exp += "-"
            exp += str(nums[3])
            if tmp == 7:
                print((exp + "=7"))
                sys.exit()

-from pprint import pprint -from operator import add, sub -from collections import deque -s = [int(s_i) for s_i in sys.stdin.readline().strip()] -# pprint(s) -for op1 in (add, sub): -    for op2 in (add, sub): -        for op3 in (add, sub): -            if op3(op2(op1(s[0], s[1]), s[2]), s[3]) == 7: -                tmp1 = "+" if op1 == add else "-" -                tmp2 = "+" if op2 == add else "-" -                tmp3 = "+" if op3 == add else "-" -                print( -                    ( -                        str(s[0]) -                        + tmp1 -                        + str(s[1]) -                        + tmp2 -                        + str(s[2]) -                        + tmp3 -                        + str(s[3]) -                        + "=7" -                    ) -                ) +tmp = list(sys.stdin.readline().strip()) +nums = list(map(int, tmp)) +for a in range(2): +    for b in range(2): +        for c in range(2): +            tmp = nums[0] +            exp = str(nums[0]) +            if a == 0: +                tmp += nums[1] +                exp += "+" +            else: +                tmp -= nums[1] +                exp += "-" +            exp += str(nums[1]) +            if b == 0: +                tmp += nums[2] +                exp += "+" +            else: +                tmp -= nums[2] +                exp += "-" +            exp += str(nums[2]) +            if c == 0: +                tmp += nums[3] +                exp += "+" +            else: +                tmp -= nums[3] +                exp += "-" +            exp += str(nums[3]) +            if tmp == 7: +                print((exp + "=7"))