s = list(eval(input()))

a = int(s[0])

b = int(s[1])

c = int(s[2])

d = int(s[3])



def p_mark(j):

    if j % 2 == 0:

        return '+'

    else:

        return '-'



for i in range(2 ** 3):

    j = i

    p = a

    x = p_mark(j)

    if x == '+':

        p += b

    else:

        p -= b

    j = j // 2

    y = p_mark(j)

    if y == '+':

        p += c

    else:

        p -= c

    j = j // 2

    z = p_mark(j)

    if z == '+':

        p += d

    else:

        p -= d

    if p == 7:

        print((str(a) + x + str(b) + y + str(c) + z + str(d) + '=7'))

        break
m = eval(input())

m = list(m)

m = list(map(int,m))

for i in range(2**3):

    n = m[0]

    x = i

    t = []

    for _ in range(3):

        if x % 2 != 0:

            n += m[_+1]

            t.append('+')

        else:

            n -= m[_+1]

            t.append('-')

        x = x // 2

    if n == 7:

        l = [m[0],t[0],m[1],t[1],m[2],t[2],m[3],'=',7]

        l = list(map(str,l))

        print((''.join(l)))

        break
s = list(eval(input()))
a = int(s[0])
b = int(s[1])
c = int(s[2])
d = int(s[3])


def p_mark(j):
    if j % 2 == 0:
        return "+"
    else:
        return "-"


for i in range(2**3):
    j = i
    p = a
    x = p_mark(j)
    if x == "+":
        p += b
    else:
        p -= b
    j = j // 2
    y = p_mark(j)
    if y == "+":
        p += c
    else:
        p -= c
    j = j // 2
    z = p_mark(j)
    if z == "+":
        p += d
    else:
        p -= d
    if p == 7:
        print((str(a) + x + str(b) + y + str(c) + z + str(d) + "=7"))
        break

m = eval(input())
m = list(m)
m = list(map(int, m))
for i in range(2**3):
    n = m[0]
    x = i
    t = []
    for _ in range(3):
        if x % 2 != 0:
            n += m[_ + 1]
            t.append("+")
        else:
            n -= m[_ + 1]
            t.append("-")
        x = x // 2
    if n == 7:
        l = [m[0], t[0], m[1], t[1], m[2], t[2], m[3], "=", 7]
        l = list(map(str, l))
        print(("".join(l)))
        break

-s = list(eval(input())) -a = int(s[0]) -b = int(s[1]) -c = int(s[2]) -d = int(s[3]) - - -def p_mark(j): -    if j % 2 == 0: -        return "+" -    else: -        return "-" - - +m = eval(input()) +m = list(m) +m = list(map(int, m)) -    j = i -    p = a -    x = p_mark(j) -    if x == "+": -        p += b -    else: -        p -= b -    j = j // 2 -    y = p_mark(j) -    if y == "+": -        p += c -    else: -        p -= c -    j = j // 2 -    z = p_mark(j) -    if z == "+": -        p += d -    else: -        p -= d -    if p == 7: -        print((str(a) + x + str(b) + y + str(c) + z + str(d) + "=7")) +    n = m[0] +    x = i +    t = [] +    for _ in range(3): +        if x % 2 != 0: +            n += m[_ + 1] +            t.append("+") +        else: +            n -= m[_ + 1] +            t.append("-") +        x = x // 2 +    if n == 7: +        l = [m[0], t[0], m[1], t[1], m[2], t[2], m[3], "=", 7] +        l = list(map(str, l)) +        print(("".join(l)))