s=eval(input())

n=len(s)-1



for i in range(2**n):

    op=['-']*n

    for j in range(n):

        if ((i>>j)&1):

            op[n-1-j]='+'



    formula=''

    for x,y in zip(s,op+['']):#sとopの長さをそろえている(多分

        formula+=(x+y)

    if eval(formula)==7:

        print((formula+'=7'))

        break
#79-C:DFS



def dfs(i,f,f_sum):

    if i==3:

        if f_sum==7:

            print((f+'=7'))

            exit()

    else:

        dfs(i+1,f+'+'+s[i+1],f_sum+int(s[i+1]))

        dfs(i+1,f+'-'+s[i+1],f_sum-int(s[i+1]))



s=eval(input())

dfs(0,s[0],int(s[0]))
s = eval(input())
n = len(s) - 1
for i in range(2**n):
    op = ["-"] * n
    for j in range(n):
        if (i >> j) & 1:
            op[n - 1 - j] = "+"
    formula = ""
    for x, y in zip(s, op + [""]):  # sとopの長さをそろえている(多分
        formula += x + y
    if eval(formula) == 7:
        print((formula + "=7"))
        break

# 79-C:DFS
def dfs(i, f, f_sum):
    if i == 3:
        if f_sum == 7:
            print((f + "=7"))
            exit()
    else:
        dfs(i + 1, f + "+" + s[i + 1], f_sum + int(s[i + 1]))
        dfs(i + 1, f + "-" + s[i + 1], f_sum - int(s[i + 1]))


s = eval(input())
dfs(0, s[0], int(s[0]))

+# 79-C:DFS +def dfs(i, f, f_sum): +    if i == 3: +        if f_sum == 7: +            print((f + "=7")) +            exit() +    else: +        dfs(i + 1, f + "+" + s[i + 1], f_sum + int(s[i + 1])) +        dfs(i + 1, f + "-" + s[i + 1], f_sum - int(s[i + 1])) + + -n = len(s) - 1 -for i in range(2**n): -    op = ["-"] * n -    for j in range(n): -        if (i >> j) & 1: -            op[n - 1 - j] = "+" -    formula = "" -    for x, y in zip(s, op + [""]):  # sとopの長さをそろえている(多分 -        formula += x + y -    if eval(formula) == 7: -        print((formula + "=7")) -        break +dfs(0, s[0], int(s[0]))