flag = False

s = list(eval(input()))

candidate = []

op = '+-'

for i in op:

    for j in op:

        for k in op:

            candidate = s[0]+i+s[1]+j+s[2]+k+s[3]

            if eval(candidate)==7:

                print((candidate+'=7'))

                flag = True

                break

        if flag:

            break

    if flag:

        break   
flag = False

s = list(eval(input()))

candidate = []

op = '+-'

for i in op:

    for j in op:

        for k in op:

            candidate = s[0]+i+s[1]+j+s[2]+k+s[3]

            if eval(candidate)==7:

                print((candidate+'=7'))

                exit()
flag = False
s = list(eval(input()))
candidate = []
op = "+-"
for i in op:
    for j in op:
        for k in op:
            candidate = s[0] + i + s[1] + j + s[2] + k + s[3]
            if eval(candidate) == 7:
                print((candidate + "=7"))
                flag = True
                break
        if flag:
            break
    if flag:
        break

flag = False
s = list(eval(input()))
candidate = []
op = "+-"
for i in op:
    for j in op:
        for k in op:
            candidate = s[0] + i + s[1] + j + s[2] + k + s[3]
            if eval(candidate) == 7:
                print((candidate + "=7"))
                exit()

-                flag = True -                break -        if flag: -            break -    if flag: -        break +                exit()