num_=eval(input())

op_=len(num_)-1

for i in range(2**op_):

  op=["-"]*op_

  for j in range(op_):

    if ((i>>j)&1):

      op[op_-1-j]="+"

  formula=""

  op.append("")

  for p_num,p_op in zip(num_,op):

    formula+=p_num+p_op

  if eval(formula)==7:

    print((formula+"=7"))

    break

ABCD=eval(input())

f=""

for bit in range(1<<3):

  f=ABCD[0]

  for i in range(3):

    if bit&(1<<i):

      f+="+"

    else:

      f+="-"

    f+=ABCD[i+1]

  if eval(f)==7:

    print((f+"=7"))

    exit()

num_ = eval(input())
op_ = len(num_) - 1
for i in range(2**op_):
    op = ["-"] * op_
    for j in range(op_):
        if (i >> j) & 1:
            op[op_ - 1 - j] = "+"
    formula = ""
    op.append("")
    for p_num, p_op in zip(num_, op):
        formula += p_num + p_op
    if eval(formula) == 7:
        print((formula + "=7"))
        break

ABCD = eval(input())
f = ""
for bit in range(1 << 3):
    f = ABCD[0]
    for i in range(3):
        if bit & (1 << i):
            f += "+"
        else:
            f += "-"
        f += ABCD[i + 1]
    if eval(f) == 7:
        print((f + "=7"))
        exit()

-num_ = eval(input()) -op_ = len(num_) - 1 -for i in range(2**op_): -    op = ["-"] * op_ -    for j in range(op_): -        if (i >> j) & 1: -            op[op_ - 1 - j] = "+" -    formula = "" -    op.append("") -    for p_num, p_op in zip(num_, op): -        formula += p_num + p_op -    if eval(formula) == 7: -        print((formula + "=7")) -        break +ABCD = eval(input()) +f = "" +for bit in range(1 << 3): +    f = ABCD[0] +    for i in range(3): +        if bit & (1 << i): +            f += "+" +        else: +            f += "-" +        f += ABCD[i + 1] +    if eval(f) == 7: +        print((f + "=7")) +        exit()