def main():

    S = input()

    a, b, c, d = (int(i) for i in S)

    ans = 0

    sign = []

    flag = False

    #op == 0 : plus, op == 1: minus

    for op1 in range(2):

        for op2 in range(2):

            for op3 in range(2):

                ans = 0

                sign = []

                if op1 == 0:

                    ans = a + b

                    sign.append('+')

                else:

                    ans = a - b

                    sign.append('-')

                if op2 == 0:

                    ans += c

                    sign.append('+')

                else:

                    ans -= c

                    sign.append('-')

                if op3 == 0:

                    ans += d

                    sign.append('+')

                else:

                    ans -= d

                    sign.append('-')

                if ans == 7:

                    flag = True

                    break

            if flag:

                break

        if flag:

            break

    for n,op in zip(S,sign):

        print(n+op,end="")

    else:

        print(S[-1]+'=7')





if __name__ == '__main__':

    main()

def main():

    S = eval(input())

    op = ['+', '-']



    def calc(cur):

        ret = int(S[0])

        for i in range(3):

            if cur[i] == "+":

                ret += int(S[i+1])

            else:

                ret -= int(S[i+1])

        return ret

    for i in range(1 << 3):

        cur = []

        for j in range(3):

            if i & (1 << j):

                cur.append(op[0])

            else:

                cur.append(op[1])

        if calc(cur) == 7:

            print(("".join(S[i]+cur[i] for i in range(3)) + S[3] + "=7"))

            return





if __name__ == '__main__':

    main()

def main():
    S = input()
    a, b, c, d = (int(i) for i in S)
    ans = 0
    sign = []
    flag = False
    # op == 0 : plus, op == 1: minus
    for op1 in range(2):
        for op2 in range(2):
            for op3 in range(2):
                ans = 0
                sign = []
                if op1 == 0:
                    ans = a + b
                    sign.append("+")
                else:
                    ans = a - b
                    sign.append("-")
                if op2 == 0:
                    ans += c
                    sign.append("+")
                else:
                    ans -= c
                    sign.append("-")
                if op3 == 0:
                    ans += d
                    sign.append("+")
                else:
                    ans -= d
                    sign.append("-")
                if ans == 7:
                    flag = True
                    break
            if flag:
                break
        if flag:
            break
    for n, op in zip(S, sign):
        print(n + op, end="")
    else:
        print(S[-1] + "=7")


if __name__ == "__main__":
    main()

def main():
    S = eval(input())
    op = ["+", "-"]

    def calc(cur):
        ret = int(S[0])
        for i in range(3):
            if cur[i] == "+":
                ret += int(S[i + 1])
            else:
                ret -= int(S[i + 1])
        return ret

    for i in range(1 << 3):
        cur = []
        for j in range(3):
            if i & (1 << j):
                cur.append(op[0])
            else:
                cur.append(op[1])
        if calc(cur) == 7:
            print(("".join(S[i] + cur[i] for i in range(3)) + S[3] + "=7"))
            return


if __name__ == "__main__":
    main()

-    S = input() -    a, b, c, d = (int(i) for i in S) -    ans = 0 -    sign = [] -    flag = False -    # op == 0 : plus, op == 1: minus -    for op1 in range(2): -        for op2 in range(2): -            for op3 in range(2): -                ans = 0 -                sign = [] -                if op1 == 0: -                    ans = a + b -                    sign.append("+") -                else: -                    ans = a - b -                    sign.append("-") -                if op2 == 0: -                    ans += c -                    sign.append("+") -                else: -                    ans -= c -                    sign.append("-") -                if op3 == 0: -                    ans += d -                    sign.append("+") -                else: -                    ans -= d -                    sign.append("-") -                if ans == 7: -                    flag = True -                    break -            if flag: -                break -        if flag: -            break -    for n, op in zip(S, sign): -        print(n + op, end="") -    else: -        print(S[-1] + "=7") +    S = eval(input()) +    op = ["+", "-"] + +    def calc(cur): +        ret = int(S[0]) +        for i in range(3): +            if cur[i] == "+": +                ret += int(S[i + 1]) +            else: +                ret -= int(S[i + 1]) +        return ret + +    for i in range(1 << 3): +        cur = [] +        for j in range(3): +            if i & (1 << j): +                cur.append(op[0]) +            else: +                cur.append(op[1]) +        if calc(cur) == 7: +            print(("".join(S[i] + cur[i] for i in range(3)) + S[3] + "=7")) +            return