

S=eval(input())

list1=[]

for i in range(4):

    list1.append(int(S[i]))

#print(list1)



list2=[]

for j in range(8):

    k=j

    list2.append(int(k/4))

    k=j%4

    list2.append(int(k/2))

    k=j%2

    list2.append(int(k/1))

    #print(list2)

    

    if list2[0]==1:

        A=list1[0]+list1[1]

    else:

        A=list1[0]-list1[1]

    if list2[1]==1:

        A=A+list1[2]

    else:

        A=A-list1[2]

    if list2[2]==1:

        A=A+list1[3]

    else:

        A=A-list1[3]

    if A==7:

        list3=[]

        for a in range(3):

            if list2[a]==0:

                list3.append("-")

            else:

                list3.append("+")

        print((str(list1[0])+list3[0]+str(list1[1])+list3[1]+str(list1[2])+list3[2]+str(list1[3])+"=7"))

        ans=1

        break

    list2=[]

A,B,C,D=list(eval(input()))



F=["+","-"]



for x in range(2):

    for y in range(2):

        for z in range(2):

            if eval(A+F[x]+B+F[y]+C+F[z]+D)==7:

                print((A+F[x]+B+F[y]+C+F[z]+D+"=7"))

                exit()

S = eval(input())
list1 = []
for i in range(4):
    list1.append(int(S[i]))
# print(list1)
list2 = []
for j in range(8):
    k = j
    list2.append(int(k / 4))
    k = j % 4
    list2.append(int(k / 2))
    k = j % 2
    list2.append(int(k / 1))
    # print(list2)
    if list2[0] == 1:
        A = list1[0] + list1[1]
    else:
        A = list1[0] - list1[1]
    if list2[1] == 1:
        A = A + list1[2]
    else:
        A = A - list1[2]
    if list2[2] == 1:
        A = A + list1[3]
    else:
        A = A - list1[3]
    if A == 7:
        list3 = []
        for a in range(3):
            if list2[a] == 0:
                list3.append("-")
            else:
                list3.append("+")
        print(
            (
                str(list1[0])
                + list3[0]
                + str(list1[1])
                + list3[1]
                + str(list1[2])
                + list3[2]
                + str(list1[3])
                + "=7"
            )
        )
        ans = 1
        break
    list2 = []

A, B, C, D = list(eval(input()))
F = ["+", "-"]
for x in range(2):
    for y in range(2):
        for z in range(2):
            if eval(A + F[x] + B + F[y] + C + F[z] + D) == 7:
                print((A + F[x] + B + F[y] + C + F[z] + D + "=7"))
                exit()

-S = eval(input()) -list1 = [] -for i in range(4): -    list1.append(int(S[i])) -# print(list1) -list2 = [] -for j in range(8): -    k = j -    list2.append(int(k / 4)) -    k = j % 4 -    list2.append(int(k / 2)) -    k = j % 2 -    list2.append(int(k / 1)) -    # print(list2) -    if list2[0] == 1: -        A = list1[0] + list1[1] -    else: -        A = list1[0] - list1[1] -    if list2[1] == 1: -        A = A + list1[2] -    else: -        A = A - list1[2] -    if list2[2] == 1: -        A = A + list1[3] -    else: -        A = A - list1[3] -    if A == 7: -        list3 = [] -        for a in range(3): -            if list2[a] == 0: -                list3.append("-") -            else: -                list3.append("+") -        print( -            ( -                str(list1[0]) -                + list3[0] -                + str(list1[1]) -                + list3[1] -                + str(list1[2]) -                + list3[2] -                + str(list1[3]) -                + "=7" -            ) -        ) -        ans = 1 -        break -    list2 = [] +A, B, C, D = list(eval(input())) +F = ["+", "-"] +for x in range(2): +    for y in range(2): +        for z in range(2): +            if eval(A + F[x] + B + F[y] + C + F[z] + D) == 7: +                print((A + F[x] + B + F[y] + C + F[z] + D + "=7")) +                exit()