S=eval(input())

T=[0]*4

for i in range(4):

    T[i]=int(S[i])



if T[0]+T[1]+T[2]+T[3]==7: print((S[0]+"+"+S[1]+"+"+S[2]+"+"+S[3]+"=7"))

elif T[0]+T[1]+T[2]-T[3]==7: print((S[0]+"+"+S[1]+"+"+S[2]+"-"+S[3]+"=7"))

elif T[0]+T[1]-T[2]-T[3]==7: print((S[0]+"+"+S[1]+"-"+S[2]+"-"+S[3]+"=7"))

elif T[0]+T[1]-T[2]+T[3]==7: print((S[0]+"+"+S[1]+"-"+S[2]+"+"+S[3]+"=7"))

elif T[0]-T[1]-T[2]-T[3]==7: print((S[0]+"-"+S[1]+"-"+S[2]+"-"+S[3]+"=7"))

elif T[0]-T[1]-T[2]+T[3]==7: print((S[0]+"-"+S[1]+"-"+S[2]+"+"+S[3]+"=7"))

elif T[0]-T[1]+T[2]+T[3]==7: print((S[0]+"-"+S[1]+"+"+S[2]+"+"+S[3]+"=7"))

elif T[0]-T[1]+T[2]-T[3]==7: print((S[0]+"-"+S[1]+"+"+S[2]+"-"+S[3]+"=7"))

S = 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(("{0}+{1}+{2}+{3}=7".format(A,B,C,D)))

elif A-B+C+D == 7: print(("{0}-{1}+{2}+{3}=7".format(A,B,C,D)))

elif A-B-C+D == 7: print(("{0}-{1}-{2}+{3}=7".format(A,B,C,D)))

elif A-B-C-D == 7: print(("{0}-{1}-{2}-{3}=7".format(A,B,C,D)))

elif A+B-C+D == 7: print(("{0}+{1}-{2}+{3}=7".format(A,B,C,D)))

elif A+B+C-D == 7: print(("{0}+{1}+{2}-{3}=7".format(A,B,C,D)))

elif A+B-C-D == 7: print(("{0}+{1}-{2}-{3}=7".format(A,B,C,D)))

elif A-B+C-D == 7: print(("{0}-{1}+{2}-{3}=7".format(A,B,C,D)))
S = eval(input())
T = [0] * 4
for i in range(4):
    T[i] = int(S[i])
if T[0] + T[1] + T[2] + T[3] == 7:
    print((S[0] + "+" + S[1] + "+" + S[2] + "+" + S[3] + "=7"))
elif T[0] + T[1] + T[2] - T[3] == 7:
    print((S[0] + "+" + S[1] + "+" + S[2] + "-" + S[3] + "=7"))
elif T[0] + T[1] - T[2] - T[3] == 7:
    print((S[0] + "+" + S[1] + "-" + S[2] + "-" + S[3] + "=7"))
elif T[0] + T[1] - T[2] + T[3] == 7:
    print((S[0] + "+" + S[1] + "-" + S[2] + "+" + S[3] + "=7"))
elif T[0] - T[1] - T[2] - T[3] == 7:
    print((S[0] + "-" + S[1] + "-" + S[2] + "-" + S[3] + "=7"))
elif T[0] - T[1] - T[2] + T[3] == 7:
    print((S[0] + "-" + S[1] + "-" + S[2] + "+" + S[3] + "=7"))
elif T[0] - T[1] + T[2] + T[3] == 7:
    print((S[0] + "-" + S[1] + "+" + S[2] + "+" + S[3] + "=7"))
elif T[0] - T[1] + T[2] - T[3] == 7:
    print((S[0] + "-" + S[1] + "+" + S[2] + "-" + S[3] + "=7"))

S = 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(("{0}+{1}+{2}+{3}=7".format(A, B, C, D)))
elif A - B + C + D == 7:
    print(("{0}-{1}+{2}+{3}=7".format(A, B, C, D)))
elif A - B - C + D == 7:
    print(("{0}-{1}-{2}+{3}=7".format(A, B, C, D)))
elif A - B - C - D == 7:
    print(("{0}-{1}-{2}-{3}=7".format(A, B, C, D)))
elif A + B - C + D == 7:
    print(("{0}+{1}-{2}+{3}=7".format(A, B, C, D)))
elif A + B + C - D == 7:
    print(("{0}+{1}+{2}-{3}=7".format(A, B, C, D)))
elif A + B - C - D == 7:
    print(("{0}+{1}-{2}-{3}=7".format(A, B, C, D)))
elif A - B + C - D == 7:
    print(("{0}-{1}+{2}-{3}=7".format(A, B, C, D)))

-T = [0] * 4 -for i in range(4): -    T[i] = int(S[i]) -if T[0] + T[1] + T[2] + T[3] == 7: -    print((S[0] + "+" + S[1] + "+" + S[2] + "+" + S[3] + "=7")) -elif T[0] + T[1] + T[2] - T[3] == 7: -    print((S[0] + "+" + S[1] + "+" + S[2] + "-" + S[3] + "=7")) -elif T[0] + T[1] - T[2] - T[3] == 7: -    print((S[0] + "+" + S[1] + "-" + S[2] + "-" + S[3] + "=7")) -elif T[0] + T[1] - T[2] + T[3] == 7: -    print((S[0] + "+" + S[1] + "-" + S[2] + "+" + S[3] + "=7")) -elif T[0] - T[1] - T[2] - T[3] == 7: -    print((S[0] + "-" + S[1] + "-" + S[2] + "-" + S[3] + "=7")) -elif T[0] - T[1] - T[2] + T[3] == 7: -    print((S[0] + "-" + S[1] + "-" + S[2] + "+" + S[3] + "=7")) -elif T[0] - T[1] + T[2] + T[3] == 7: -    print((S[0] + "-" + S[1] + "+" + S[2] + "+" + S[3] + "=7")) -elif T[0] - T[1] + T[2] - T[3] == 7: -    print((S[0] + "-" + S[1] + "+" + S[2] + "-" + S[3] + "=7")) +A = int(S[0]) +B = int(S[1]) +C = int(S[2]) +D = int(S[3]) +if A + B + C + D == 7: +    print(("{0}+{1}+{2}+{3}=7".format(A, B, C, D))) +elif A - B + C + D == 7: +    print(("{0}-{1}+{2}+{3}=7".format(A, B, C, D))) +elif A - B - C + D == 7: +    print(("{0}-{1}-{2}+{3}=7".format(A, B, C, D))) +elif A - B - C - D == 7: +    print(("{0}-{1}-{2}-{3}=7".format(A, B, C, D))) +elif A + B - C + D == 7: +    print(("{0}+{1}-{2}+{3}=7".format(A, B, C, D))) +elif A + B + C - D == 7: +    print(("{0}+{1}+{2}-{3}=7".format(A, B, C, D))) +elif A + B - C - D == 7: +    print(("{0}+{1}-{2}-{3}=7".format(A, B, C, D))) +elif A - B + C - D == 7: +    print(("{0}-{1}+{2}-{3}=7".format(A, B, C, D)))