a,b,c,d=eval(input())

for i in range(2**3):

    l=["-","-","-"]

    for j in range(3):

        if (i>>j&1):

            l[j]="+"

    if eval(a+l[0]+b+l[1]+c+l[2]+d)==7:

        print((a+l[0]+b+l[1]+c+l[2]+d+"=7"))

        exit()
a,b,c,d=eval(input())

for i in range(2**3):

    op=["-","-","-"]

    for j in range(3):

        if (i>>j&1):

            op[j]="+"

    if eval(a+op[0]+b+op[1]+c+op[2]+d)==7:

        print((a+op[0]+b+op[1]+c+op[2]+d+"=7"))

        exit()
a, b, c, d = eval(input())
for i in range(2**3):
    l = ["-", "-", "-"]
    for j in range(3):
        if i >> j & 1:
            l[j] = "+"
    if eval(a + l[0] + b + l[1] + c + l[2] + d) == 7:
        print((a + l[0] + b + l[1] + c + l[2] + d + "=7"))
        exit()

a, b, c, d = eval(input())
for i in range(2**3):
    op = ["-", "-", "-"]
    for j in range(3):
        if i >> j & 1:
            op[j] = "+"
    if eval(a + op[0] + b + op[1] + c + op[2] + d) == 7:
        print((a + op[0] + b + op[1] + c + op[2] + d + "=7"))
        exit()

-    l = ["-", "-", "-"] +    op = ["-", "-", "-"] -            l[j] = "+" -    if eval(a + l[0] + b + l[1] + c + l[2] + d) == 7: -        print((a + l[0] + b + l[1] + c + l[2] + d + "=7")) +            op[j] = "+" +    if eval(a + op[0] + b + op[1] + c + op[2] + d) == 7: +        print((a + op[0] + b + op[1] + c + op[2] + d + "=7"))