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



ans = [''] * 3

for p in range(1<<3):

    t = l[0]

    for i in range(1,4):

        if p & 1:

            t += l[i]

            ans[i-1] = '+'

        else:

            t -= l[i]

            ans[i-1] = '-'

        p >>= 1

    if t == 7:

        break



print((str(l[0])+ans[0]+str(l[1])+ans[1]+str(l[2])+ans[2]+str(l[3])+'=7'))
s=eval(input())

N=list(map(int,s))

for p in range(1<<3):

    t = N[0]

    ans = str(t)

    for i in range(1,4):

        if p&1:

            t+=N[i]

            ans+='+'+str(N[i])

        else:

            t-=N[i]

            ans+='-'+str(N[i])

        p>>=1

    if t==7:

        print((ans+'=7'))

        exit()
l = list(map(int, eval(input())))
ans = [""] * 3
for p in range(1 << 3):
    t = l[0]
    for i in range(1, 4):
        if p & 1:
            t += l[i]
            ans[i - 1] = "+"
        else:
            t -= l[i]
            ans[i - 1] = "-"
        p >>= 1
    if t == 7:
        break
print((str(l[0]) + ans[0] + str(l[1]) + ans[1] + str(l[2]) + ans[2] + str(l[3]) + "=7"))

s = eval(input())
N = list(map(int, s))
for p in range(1 << 3):
    t = N[0]
    ans = str(t)
    for i in range(1, 4):
        if p & 1:
            t += N[i]
            ans += "+" + str(N[i])
        else:
            t -= N[i]
            ans += "-" + str(N[i])
        p >>= 1
    if t == 7:
        print((ans + "=7"))
        exit()

-l = list(map(int, eval(input()))) -ans = [""] * 3 +s = eval(input()) +N = list(map(int, s)) -    t = l[0] +    t = N[0] +    ans = str(t) -            t += l[i] -            ans[i - 1] = "+" +            t += N[i] +            ans += "+" + str(N[i]) -            t -= l[i] -            ans[i - 1] = "-" +            t -= N[i] +            ans += "-" + str(N[i]) -        break -print((str(l[0]) + ans[0] + str(l[1]) + ans[1] + str(l[2]) + ans[2] + str(l[3]) + "=7")) +        print((ans + "=7")) +        exit()