Sitting in a station waiting room, Joisino is gazing at her train ticket.  The ticket is numbered with four digits A, B, C and D in this order, each between 0 and 9 (inclusive).  In the formula A op1 B op2 C op3 D = 7, replace each of the symbols op1, op2 and op3 with `+` or `-` so that the formula holds.  The given input guarantees that there is a solution. If there are multiple solutions, any of them will be accepted.
ABCD = str(input())
A = int(ABCD[0])
B = int(ABCD[1])
C = int(ABCD[2])
D = int(ABCD[3])
X = ["+","-"]
def func(a,b,c):
  if(a==0):
    return b+c
  else:
    return b-c
  
for i in range(2):
  for j in range(2):
    for k in range(2):
      if(func(k,func(j,func(i,A,B),C),D)==7):
        I = i
        J = j
        K = k
        break;
              
ans = str(A)+X[I]+str(B)+X[J]+str(C)+X[K]+str(D)
print(ans)
ABCD = str(input())
A = int(ABCD[0])
B = int(ABCD[1])
C = int(ABCD[2])
D = int(ABCD[3])
X = ["+","-"]
def func(a,b,c):
  if(a==0):
    return b+c
  else:
    return b-c
  
for i in range(2):
  for j in range(2):
    for k in range(2):
      if(func(k,func(j,func(i,A,B),C),D)==7):
        I = i
        J = j
        K = k
        break;
              
ans = str(A)+X[I]+str(B)+X[J]+str(C)+X[K]+str(D)+"=7"
print(ans)