s = eval(input())



for bit in range(1 << 3):

    ans = s[0]

    value = int(s[0])

    for i in range(3):

        if bit & (1 << i):

            ans += "+" + s[i+1]

            value += int(s[i+1])

        else:

            ans += "-" + s[i+1]

            value -= int(s[i+1])

    

    if value == 7:

        print((ans + "=7"))

        exit()
s = eval(input())



def dfs(i,f,sum):

    if i == 3:

        if sum == 7:

            print((f + "=7"))

            exit()

    

    else:

        dfs(i+1,f + "+" + s[i+1],sum + int(s[i+1]))

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



dfs(0,s[0],int(s[0]))   
s = eval(input())
for bit in range(1 << 3):
    ans = s[0]
    value = int(s[0])
    for i in range(3):
        if bit & (1 << i):
            ans += "+" + s[i + 1]
            value += int(s[i + 1])
        else:
            ans += "-" + s[i + 1]
            value -= int(s[i + 1])
    if value == 7:
        print((ans + "=7"))
        exit()

s = eval(input())


def dfs(i, f, sum):
    if i == 3:
        if sum == 7:
            print((f + "=7"))
            exit()
    else:
        dfs(i + 1, f + "+" + s[i + 1], sum + int(s[i + 1]))
        dfs(i + 1, f + "-" + s[i + 1], sum - int(s[i + 1]))


dfs(0, s[0], int(s[0]))

-for bit in range(1 << 3): -    ans = s[0] -    value = int(s[0]) -    for i in range(3): -        if bit & (1 << i): -            ans += "+" + s[i + 1] -            value += int(s[i + 1]) -        else: -            ans += "-" + s[i + 1] -            value -= int(s[i + 1]) -    if value == 7: -        print((ans + "=7")) -        exit() + + +def dfs(i, f, sum): +    if i == 3: +        if sum == 7: +            print((f + "=7")) +            exit() +    else: +        dfs(i + 1, f + "+" + s[i + 1], sum + int(s[i + 1])) +        dfs(i + 1, f + "-" + s[i + 1], sum - int(s[i + 1])) + + +dfs(0, s[0], int(s[0]))