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()))

n = len(s)

lists = []

ans_list = []

Sum = 0

for i in range(2**n):

    lists = []

    ans_list = []

    Sum = int(s[0])

    for j in range(n-1):

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

            lists.append(1)

        else:

            lists.append(0)

    for k in range(n-1):

        ans_list.append(s[k])

        if lists[k] == 1:

            ans_list.append("+")

        else:

            ans_list.append("-")

    ans_list.append(s[-1])

    for l in range(1,len(ans_list) -1 ):

        if ans_list[l] == "+":

            Sum += int(ans_list[l+1])

        elif ans_list[l] == "-":

            Sum -= int(ans_list[l+1])

    if Sum == 7:

        ans_list.append("=7")

        ans = "".join(ans_list)

        print(ans)

        exit()



    
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()))
n = len(s)
lists = []
ans_list = []
Sum = 0
for i in range(2**n):
    lists = []
    ans_list = []
    Sum = int(s[0])
    for j in range(n - 1):
        if (i >> j) & 1:
            lists.append(1)
        else:
            lists.append(0)
    for k in range(n - 1):
        ans_list.append(s[k])
        if lists[k] == 1:
            ans_list.append("+")
        else:
            ans_list.append("-")
    ans_list.append(s[-1])
    for l in range(1, len(ans_list) - 1):
        if ans_list[l] == "+":
            Sum += int(ans_list[l + 1])
        elif ans_list[l] == "-":
            Sum -= int(ans_list[l + 1])
    if Sum == 7:
        ans_list.append("=7")
        ans = "".join(ans_list)
        print(ans)
        exit()

-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())) +n = len(s) +lists = [] +ans_list = [] +Sum = 0 +for i in range(2**n): +    lists = [] +    ans_list = [] +    Sum = int(s[0]) +    for j in range(n - 1): +        if (i >> j) & 1: +            lists.append(1) +        else: +            lists.append(0) +    for k in range(n - 1): +        ans_list.append(s[k]) +        if lists[k] == 1: +            ans_list.append("+") +        else: +            ans_list.append("-") +    ans_list.append(s[-1]) +    for l in range(1, len(ans_list) - 1): +        if ans_list[l] == "+": +            Sum += int(ans_list[l + 1]) +        elif ans_list[l] == "-": +            Sum -= int(ans_list[l + 1]) +    if Sum == 7: +        ans_list.append("=7") +        ans = "".join(ans_list) +        print(ans) +        exit()