l=list(map(int,eval(input())))



n=3

for i in range(2**n):

    s = str(l[0])

    sum_s = l[0]

    for j in range(n):

        #j桁目が1の時

        if (i>>j)&1:

            s+='+'+str(l[j+1])

            sum_s+=l[j+1]

        #ｊ桁目が0の時

        else:

            s+='-'+str(l[j+1])

            sum_s-=l[j+1]



    if sum_s==7:

        print((s+'=7'))

        exit()
l=list(map(int,eval(input())))



def dfs(i,s,sum):

    if i==3:

        if sum==7:

            print((s+'=7'))

            exit()

    else:

        dfs(i+1,s+'-'+str(l[i+1]),sum-l[i+1])

        dfs(i+1,s+'+'+str(l[i+1]),sum+l[i+1])

    return -1



dfs(0,str(l[0]),l[0])
l = list(map(int, eval(input())))
n = 3
for i in range(2**n):
    s = str(l[0])
    sum_s = l[0]
    for j in range(n):
        # j桁目が1の時
        if (i >> j) & 1:
            s += "+" + str(l[j + 1])
            sum_s += l[j + 1]
        # ｊ桁目が0の時
        else:
            s += "-" + str(l[j + 1])
            sum_s -= l[j + 1]
    if sum_s == 7:
        print((s + "=7"))
        exit()

l = list(map(int, eval(input())))


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


dfs(0, str(l[0]), l[0])

-n = 3 -for i in range(2**n): -    s = str(l[0]) -    sum_s = l[0] -    for j in range(n): -        # j桁目が1の時 -        if (i >> j) & 1: -            s += "+" + str(l[j + 1]) -            sum_s += l[j + 1] -        # ｊ桁目が0の時 -        else: -            s += "-" + str(l[j + 1]) -            sum_s -= l[j + 1] -    if sum_s == 7: -        print((s + "=7")) -        exit() + + +def dfs(i, s, sum): +    if i == 3: +        if sum == 7: +            print((s + "=7")) +            exit() +    else: +        dfs(i + 1, s + "-" + str(l[i + 1]), sum - l[i + 1]) +        dfs(i + 1, s + "+" + str(l[i + 1]), sum + l[i + 1]) +    return -1 + + +dfs(0, str(l[0]), l[0])