def solve():

    S=list(eval(input()))

    for i in range(8):

        ans=int(S[0])

        for j in range(3):

            if (i & (1 << j)) != 0:

                ans+=int(S[j+1])

            else:

                ans-=int(S[j+1])

        if ans==7:

            ans=S[0]

            for j in range(3):

                if (i & (1 << j)) != 0:

                    ans+='+'

                else:

                    ans+='-'

                ans+=S[j+1]

            return ans+'=7'



print((solve()))

def solve():

    n = list(eval(input()))

    n = [ord(c) - ord('0') for c in n]

    sign = ['-', '+']



    for i in range(2):

        for j in range(2):

            for k in range(2):

                t = n[0]

                t += n[1] * (i * 2 - 1)

                t += n[2] * (j * 2 - 1)

                t += n[3] * (k * 2 - 1)

                if t == 7:

                    print(('{}{}{}{}{}{}{}=7'.format(n[0], sign[i], n[1], sign[j], n[2], sign[k], n[3])))

                    return





if __name__ == "__main__":

    solve()

def solve():
    S = list(eval(input()))
    for i in range(8):
        ans = int(S[0])
        for j in range(3):
            if (i & (1 << j)) != 0:
                ans += int(S[j + 1])
            else:
                ans -= int(S[j + 1])
        if ans == 7:
            ans = S[0]
            for j in range(3):
                if (i & (1 << j)) != 0:
                    ans += "+"
                else:
                    ans += "-"
                ans += S[j + 1]
            return ans + "=7"


print((solve()))

def solve():
    n = list(eval(input()))
    n = [ord(c) - ord("0") for c in n]
    sign = ["-", "+"]
    for i in range(2):
        for j in range(2):
            for k in range(2):
                t = n[0]
                t += n[1] * (i * 2 - 1)
                t += n[2] * (j * 2 - 1)
                t += n[3] * (k * 2 - 1)
                if t == 7:
                    print(
                        (
                            "{}{}{}{}{}{}{}=7".format(
                                n[0], sign[i], n[1], sign[j], n[2], sign[k], n[3]
                            )
                        )
                    )
                    return


if __name__ == "__main__":
    solve()

-    S = list(eval(input())) -    for i in range(8): -        ans = int(S[0]) -        for j in range(3): -            if (i & (1 << j)) != 0: -                ans += int(S[j + 1]) -            else: -                ans -= int(S[j + 1]) -        if ans == 7: -            ans = S[0] -            for j in range(3): -                if (i & (1 << j)) != 0: -                    ans += "+" -                else: -                    ans += "-" -                ans += S[j + 1] -            return ans + "=7" +    n = list(eval(input())) +    n = [ord(c) - ord("0") for c in n] +    sign = ["-", "+"] +    for i in range(2): +        for j in range(2): +            for k in range(2): +                t = n[0] +                t += n[1] * (i * 2 - 1) +                t += n[2] * (j * 2 - 1) +                t += n[3] * (k * 2 - 1) +                if t == 7: +                    print( +                        ( +                            "{}{}{}{}{}{}{}=7".format( +                                n[0], sign[i], n[1], sign[j], n[2], sign[k], n[3] +                            ) +                        ) +                    ) +                    return -print((solve())) +if __name__ == "__main__": +    solve()