n=eval(input())

num=[]

for i in range(4):

    num.append(int(n[i]))

o=["+","+","+"]

op=[1,1,1]

def ans():

    return num[0]+op[0]*num[1]+op[1]*num[2]+op[2]*num[3]

if ans()!=7:

    for i in range(3):

        op[i]=-1

        if ans()==7:

            break

        op[i]=1

if ans()!=7:  

    for i in range(-1,2):

        op[i]=-1

        op[i+1]=-1

        if ans()==7:

            break

        op[i]=1

        op[i+1]=1

if ans()!=7:

    for i in range(3):

        op[i]=-1

for i in range(3):

    if op[i]==-1:

        o[i]="-"

print((n[0]+o[0]+n[1]+o[1]+n[2]+o[2]+n[3]+"=7"))
n=eval(input())

a=int(n[0])

b=int(n[1])

c=int(n[2])

d=int(n[3])



if a+b+c+d==7:

    print(("%d+%d+%d+%d=7"%(a,b,c,d)))

elif a+b+c-d==7:

    print(("%d+%d+%d-%d=7"%(a,b,c,d)))

elif a+b-c+d==7:

    print(("%d+%d-%d+%d=7"%(a,b,c,d)))

elif a+b-c-d==7:

    print(("%d+%d-%d-%d=7"%(a,b,c,d)))

elif a-b+c+d==7:

    print(("%d-%d+%d+%d=7"%(a,b,c,d)))

elif a-b+c-d==7:

    print(("%d-%d+%d-%d=7"%(a,b,c,d)))

elif a-b-c+d==7:

    print(("%d-%d-%d+%d=7"%(a,b,c,d)))

else:

    print(("%d-%d-%d-%d=7"%(a,b,c,d)))
n = eval(input())
num = []
for i in range(4):
    num.append(int(n[i]))
o = ["+", "+", "+"]
op = [1, 1, 1]


def ans():
    return num[0] + op[0] * num[1] + op[1] * num[2] + op[2] * num[3]


if ans() != 7:
    for i in range(3):
        op[i] = -1
        if ans() == 7:
            break
        op[i] = 1
if ans() != 7:
    for i in range(-1, 2):
        op[i] = -1
        op[i + 1] = -1
        if ans() == 7:
            break
        op[i] = 1
        op[i + 1] = 1
if ans() != 7:
    for i in range(3):
        op[i] = -1
for i in range(3):
    if op[i] == -1:
        o[i] = "-"
print((n[0] + o[0] + n[1] + o[1] + n[2] + o[2] + n[3] + "=7"))

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

-num = [] -for i in range(4): -    num.append(int(n[i])) -o = ["+", "+", "+"] -op = [1, 1, 1] - - -def ans(): -    return num[0] + op[0] * num[1] + op[1] * num[2] + op[2] * num[3] - - -if ans() != 7: -    for i in range(3): -        op[i] = -1 -        if ans() == 7: -            break -        op[i] = 1 -if ans() != 7: -    for i in range(-1, 2): -        op[i] = -1 -        op[i + 1] = -1 -        if ans() == 7: -            break -        op[i] = 1 -        op[i + 1] = 1 -if ans() != 7: -    for i in range(3): -        op[i] = -1 -for i in range(3): -    if op[i] == -1: -        o[i] = "-" -print((n[0] + o[0] + n[1] + o[1] + n[2] + o[2] + n[3] + "=7")) +a = int(n[0]) +b = int(n[1]) +c = int(n[2]) +d = int(n[3]) +if a + b + c + d == 7: +    print(("%d+%d+%d+%d=7" % (a, b, c, d))) +elif a + b + c - d == 7: +    print(("%d+%d+%d-%d=7" % (a, b, c, d))) +elif a + b - c + d == 7: +    print(("%d+%d-%d+%d=7" % (a, b, c, d))) +elif a + b - c - d == 7: +    print(("%d+%d-%d-%d=7" % (a, b, c, d))) +elif a - b + c + d == 7: +    print(("%d-%d+%d+%d=7" % (a, b, c, d))) +elif a - b + c - d == 7: +    print(("%d-%d+%d-%d=7" % (a, b, c, d))) +elif a - b - c + d == 7: +    print(("%d-%d-%d+%d=7" % (a, b, c, d))) +else: +    print(("%d-%d-%d-%d=7" % (a, b, c, d)))