s=str(eval(input()))



ans=int(s[0])

a=ans

for i in range(2):

    ans=a

    if i==0:

        ans+=int(s[1])

        i='+'

    else:

        ans-=int(s[1])

        i='-'

    b=ans

    for j in range(2):

        ans=b

        if j==0:

            ans+=int(s[2])

            j='+'

        else:

            ans-=int(s[2])

            j='-'

        c=ans

        for k in range(2):

            ans=c

            if k==0:

                ans+=int(s[3])

                k='+'

            else:

                ans-=int(s[3])

                k='-'

            if ans==int(7):

                print((s[0]+str(i)+s[1]+str(j)+s[2]+str(k)+s[3]+'=7'))

                break

        else:

            continue

        break

    else:

        continue

    break



s=str(eval(input()))

a=int(s[0])

b=int(s[1])

c=int(s[2])

d=int(s[3])



if a+b+c+d==7:print((str(a)+'+'+str(b)+'+'+str(c)+'+'+str(d)+'=7'))

elif a+b+c-d==7:print((str(a)+'+'+str(b)+'+'+str(c)+'-'+str(d)+'=7'))

elif a+b-c+d==7:print((str(a)+'+'+str(b)+'-'+str(c)+'+'+str(d)+'=7'))

elif a+b-c-d==7:print((str(a)+'+'+str(b)+'-'+str(c)+'-'+str(d)+'=7'))

elif a-b+c+d==7:print((str(a)+'-'+str(b)+'+'+str(c)+'+'+str(d)+'=7'))

elif a-b+c-d==7:print((str(a)+'-'+str(b)+'+'+str(c)+'-'+str(d)+'=7'))

elif a-b-c+d==7:print((str(a)+'-'+str(b)+'-'+str(c)+'+'+str(d)+'=7'))

elif a-b-c-d==7:print((str(a)+'-'+str(b)+'-'+str(c)+'-'+str(d)+'=7'))

s = str(eval(input()))
ans = int(s[0])
a = ans
for i in range(2):
    ans = a
    if i == 0:
        ans += int(s[1])
        i = "+"
    else:
        ans -= int(s[1])
        i = "-"
    b = ans
    for j in range(2):
        ans = b
        if j == 0:
            ans += int(s[2])
            j = "+"
        else:
            ans -= int(s[2])
            j = "-"
        c = ans
        for k in range(2):
            ans = c
            if k == 0:
                ans += int(s[3])
                k = "+"
            else:
                ans -= int(s[3])
                k = "-"
            if ans == int(7):
                print((s[0] + str(i) + s[1] + str(j) + s[2] + str(k) + s[3] + "=7"))
                break
        else:
            continue
        break
    else:
        continue
    break

s = str(eval(input()))
a = int(s[0])
b = int(s[1])
c = int(s[2])
d = int(s[3])
if a + b + c + d == 7:
    print((str(a) + "+" + str(b) + "+" + str(c) + "+" + str(d) + "=7"))
elif a + b + c - d == 7:
    print((str(a) + "+" + str(b) + "+" + str(c) + "-" + str(d) + "=7"))
elif a + b - c + d == 7:
    print((str(a) + "+" + str(b) + "-" + str(c) + "+" + str(d) + "=7"))
elif a + b - c - d == 7:
    print((str(a) + "+" + str(b) + "-" + str(c) + "-" + str(d) + "=7"))
elif a - b + c + d == 7:
    print((str(a) + "-" + str(b) + "+" + str(c) + "+" + str(d) + "=7"))
elif a - b + c - d == 7:
    print((str(a) + "-" + str(b) + "+" + str(c) + "-" + str(d) + "=7"))
elif a - b - c + d == 7:
    print((str(a) + "-" + str(b) + "-" + str(c) + "+" + str(d) + "=7"))
elif a - b - c - d == 7:
    print((str(a) + "-" + str(b) + "-" + str(c) + "-" + str(d) + "=7"))

-ans = int(s[0]) -a = ans -for i in range(2): -    ans = a -    if i == 0: -        ans += int(s[1]) -        i = "+" -    else: -        ans -= int(s[1]) -        i = "-" -    b = ans -    for j in range(2): -        ans = b -        if j == 0: -            ans += int(s[2]) -            j = "+" -        else: -            ans -= int(s[2]) -            j = "-" -        c = ans -        for k in range(2): -            ans = c -            if k == 0: -                ans += int(s[3]) -                k = "+" -            else: -                ans -= int(s[3]) -                k = "-" -            if ans == int(7): -                print((s[0] + str(i) + s[1] + str(j) + s[2] + str(k) + s[3] + "=7")) -                break -        else: -            continue -        break -    else: -        continue -    break +a = int(s[0]) +b = int(s[1]) +c = int(s[2]) +d = int(s[3]) +if a + b + c + d == 7: +    print((str(a) + "+" + str(b) + "+" + str(c) + "+" + str(d) + "=7")) +elif a + b + c - d == 7: +    print((str(a) + "+" + str(b) + "+" + str(c) + "-" + str(d) + "=7")) +elif a + b - c + d == 7: +    print((str(a) + "+" + str(b) + "-" + str(c) + "+" + str(d) + "=7")) +elif a + b - c - d == 7: +    print((str(a) + "+" + str(b) + "-" + str(c) + "-" + str(d) + "=7")) +elif a - b + c + d == 7: +    print((str(a) + "-" + str(b) + "+" + str(c) + "+" + str(d) + "=7")) +elif a - b + c - d == 7: +    print((str(a) + "-" + str(b) + "+" + str(c) + "-" + str(d) + "=7")) +elif a - b - c + d == 7: +    print((str(a) + "-" + str(b) + "-" + str(c) + "+" + str(d) + "=7")) +elif a - b - c - d == 7: +    print((str(a) + "-" + str(b) + "-" + str(c) + "-" + str(d) + "=7"))