def resolve():

    s = eval(input())

    a = s[0]

    b = s[1]

    c = s[2]

    d = s[3]



    for i in range(8):

        op1 = "+" if i>>0 & 1 else "-"

        op2 = "+" if i>>1 & 1 else "-"

        op3 = "+" if i>>2 & 1 else "-"

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

        if eval(test) == 7:

            print((test + "=7"))

            exit()

resolve()
def resolve():

    s = eval(input())



    def dfs(i, f):

        if i == 3:

            return f.split(",")

        return dfs(i+1, f + "+" + s[i+1]) + dfs(i+1, f + "-" + s[i+1])

    for i in dfs(0, s[0]):

        if eval(i) == 7:

            print((i + "=7"))

            exit()

resolve()
def resolve():
    s = eval(input())
    a = s[0]
    b = s[1]
    c = s[2]
    d = s[3]
    for i in range(8):
        op1 = "+" if i >> 0 & 1 else "-"
        op2 = "+" if i >> 1 & 1 else "-"
        op3 = "+" if i >> 2 & 1 else "-"
        test = a + op1 + b + op2 + c + op3 + d
        if eval(test) == 7:
            print((test + "=7"))
            exit()


resolve()

def resolve():
    s = eval(input())

    def dfs(i, f):
        if i == 3:
            return f.split(",")
        return dfs(i + 1, f + "+" + s[i + 1]) + dfs(i + 1, f + "-" + s[i + 1])

    for i in dfs(0, s[0]):
        if eval(i) == 7:
            print((i + "=7"))
            exit()


resolve()

-    a = s[0] -    b = s[1] -    c = s[2] -    d = s[3] -    for i in range(8): -        op1 = "+" if i >> 0 & 1 else "-" -        op2 = "+" if i >> 1 & 1 else "-" -        op3 = "+" if i >> 2 & 1 else "-" -        test = a + op1 + b + op2 + c + op3 + d -        if eval(test) == 7: -            print((test + "=7")) + +    def dfs(i, f): +        if i == 3: +            return f.split(",") +        return dfs(i + 1, f + "+" + s[i + 1]) + dfs(i + 1, f + "-" + s[i + 1]) + +    for i in dfs(0, s[0]): +        if eval(i) == 7: +            print((i + "=7"))