import math

import sys

input = sys.stdin.readline



abcd = int(eval(input()))

for i in range(int(4-math.log10(abcd))):

    abcd = '0'+str(abcd)

a, b, c, d = str(abcd)

a = int(a);b = int(b);c = int(c);d = int(d)

if a+b+c+d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'+'+b+'+'+c+'+'+d+'=7'

elif a+b+c-d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'+'+b+'+'+c+'-'+d+'=7'

elif a+b-c-d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'+'+b+'-'+c+'-'+d+'=7'

elif a+b-c+d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'+'+b+'-'+c+'+'+d+'=7'

elif a-b+c+d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'-'+b+'+'+c+'+'+d+'=7'

elif a-b+c-d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'-'+b+'+'+c+'-'+d+'=7'

elif a-b-c+d == 7:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'-'+b+'-'+c+'+'+d+'=7'

else:

    a = str(a);b = str(b);c = str(c);d = str(d)

    ans = a+'-'+b+'-'+c+'-'+d+'=7'

print(ans)
import itertools



abcd = eval(input())

memo = list(itertools.product(['+', '-'], repeat=3))



for i in range(2 ** 3):

    cnt = int(abcd[0])

    for j in range(3):

        if memo[i][j] == '+':

            cnt += int(abcd[j + 1])

        else:

            cnt -= int(abcd[j + 1])

    if cnt == 7:

        print((abcd[0] + memo[i][0] + abcd[1] + memo[i][1] + abcd[2] + memo[i][2] + abcd[3] + '=7'))

        break

import math
import sys

input = sys.stdin.readline
abcd = int(eval(input()))
for i in range(int(4 - math.log10(abcd))):
    abcd = "0" + str(abcd)
a, b, c, d = str(abcd)
a = int(a)
b = int(b)
c = int(c)
d = int(d)
if a + b + c + d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "+" + b + "+" + c + "+" + d + "=7"
elif a + b + c - d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "+" + b + "+" + c + "-" + d + "=7"
elif a + b - c - d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "+" + b + "-" + c + "-" + d + "=7"
elif a + b - c + d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "+" + b + "-" + c + "+" + d + "=7"
elif a - b + c + d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "-" + b + "+" + c + "+" + d + "=7"
elif a - b + c - d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "-" + b + "+" + c + "-" + d + "=7"
elif a - b - c + d == 7:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "-" + b + "-" + c + "+" + d + "=7"
else:
    a = str(a)
    b = str(b)
    c = str(c)
    d = str(d)
    ans = a + "-" + b + "-" + c + "-" + d + "=7"
print(ans)

import itertools

abcd = eval(input())
memo = list(itertools.product(["+", "-"], repeat=3))
for i in range(2**3):
    cnt = int(abcd[0])
    for j in range(3):
        if memo[i][j] == "+":
            cnt += int(abcd[j + 1])
        else:
            cnt -= int(abcd[j + 1])
    if cnt == 7:
        print(
            (
                abcd[0]
                + memo[i][0]
                + abcd[1]
                + memo[i][1]
                + abcd[2]
                + memo[i][2]
                + abcd[3]
                + "=7"
            )
        )
        break

-import math -import sys +import itertools -input = sys.stdin.readline -abcd = int(eval(input())) -for i in range(int(4 - math.log10(abcd))): -    abcd = "0" + str(abcd) -a, b, c, d = str(abcd) -a = int(a) -b = int(b) -c = int(c) -d = int(d) -if a + b + c + d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "+" + b + "+" + c + "+" + d + "=7" -elif a + b + c - d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "+" + b + "+" + c + "-" + d + "=7" -elif a + b - c - d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "+" + b + "-" + c + "-" + d + "=7" -elif a + b - c + d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "+" + b + "-" + c + "+" + d + "=7" -elif a - b + c + d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "-" + b + "+" + c + "+" + d + "=7" -elif a - b + c - d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "-" + b + "+" + c + "-" + d + "=7" -elif a - b - c + d == 7: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "-" + b + "-" + c + "+" + d + "=7" -else: -    a = str(a) -    b = str(b) -    c = str(c) -    d = str(d) -    ans = a + "-" + b + "-" + c + "-" + d + "=7" -print(ans) +abcd = eval(input()) +memo = list(itertools.product(["+", "-"], repeat=3)) +for i in range(2**3): +    cnt = int(abcd[0]) +    for j in range(3): +        if memo[i][j] == "+": +            cnt += int(abcd[j + 1]) +        else: +            cnt -= int(abcd[j + 1]) +    if cnt == 7: +        print( +            ( +                abcd[0] +                + memo[i][0] +                + abcd[1] +                + memo[i][1] +                + abcd[2] +                + memo[i][2] +                + abcd[3] +                + "=7" +            ) +        ) +        break