def dfs(i: int, t: int, op: str):

  if i == 3:

    if t == 7:

      return op

    else:

      return ""



  return dfs(i + 1, t + s[i + 1], op + "+") + dfs(i + 1, t - s[i + 1], op + "-")



s = list(map(int, list(eval(input()))))

op = ""



op = dfs(0, s[0], op)

ans = str(s[0]) + op[0] + str(s[1]) + op[1] + str(s[2]) + op[2] + str(s[3]) + "=7"

print(ans)

def dfs(array: list, index: int, calc: str, result: int):

    if index == len(array):

        if result == 7:

            print(("{}=7".format(calc)))

            exit(0)



    if index == 0:

        dfs(array, index + 1, array[index], int(array[index]))

    elif index < len(array):

        dfs(array, index + 1, calc + "-" + array[index], result - int(array[index]))

        dfs(array, index + 1, calc + "+" + array[index], result + int(array[index]))



array = list(eval(input()))

dfs(array, 0, "", 0)

def dfs(i: int, t: int, op: str):
    if i == 3:
        if t == 7:
            return op
        else:
            return ""
    return dfs(i + 1, t + s[i + 1], op + "+") + dfs(i + 1, t - s[i + 1], op + "-")


s = list(map(int, list(eval(input()))))
op = ""
op = dfs(0, s[0], op)
ans = str(s[0]) + op[0] + str(s[1]) + op[1] + str(s[2]) + op[2] + str(s[3]) + "=7"
print(ans)

def dfs(array: list, index: int, calc: str, result: int):
    if index == len(array):
        if result == 7:
            print(("{}=7".format(calc)))
            exit(0)
    if index == 0:
        dfs(array, index + 1, array[index], int(array[index]))
    elif index < len(array):
        dfs(array, index + 1, calc + "-" + array[index], result - int(array[index]))
        dfs(array, index + 1, calc + "+" + array[index], result + int(array[index]))


array = list(eval(input()))
dfs(array, 0, "", 0)

-def dfs(i: int, t: int, op: str): -    if i == 3: -        if t == 7: -            return op -        else: -            return "" -    return dfs(i + 1, t + s[i + 1], op + "+") + dfs(i + 1, t - s[i + 1], op + "-") +def dfs(array: list, index: int, calc: str, result: int): +    if index == len(array): +        if result == 7: +            print(("{}=7".format(calc))) +            exit(0) +    if index == 0: +        dfs(array, index + 1, array[index], int(array[index])) +    elif index < len(array): +        dfs(array, index + 1, calc + "-" + array[index], result - int(array[index])) +        dfs(array, index + 1, calc + "+" + array[index], result + int(array[index])) -s = list(map(int, list(eval(input())))) -op = "" -op = dfs(0, s[0], op) -ans = str(s[0]) + op[0] + str(s[1]) + op[1] + str(s[2]) + op[2] + str(s[3]) + "=7" -print(ans) +array = list(eval(input())) +dfs(array, 0, "", 0)