integer N
integer A,B,C,D
read*,N
A=N/1000
N=N-A*1000
B=N/100
N=N-B*100
C=N/10
N=N-C*10
D=N
if(A+B+C+D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"+",B,"+",C,"+",D,"=7"
  stop
end if
if(A+B+C-D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"+",B,"+",C,"-",D,"=7"
  stop
end if
if(A+B-C+D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"+",B,"-",C,"+",D,"=7"
  stop
end if
if(A+B-C-D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"+",B,"-",C,"-",D,"=7"
  stop
end if
if(A-B+C+D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"-",B,"+",C,"+",D,"=7"
  stop
end if
if(A-B+C-D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"-",B,"+",C,"-",D,"=7"
  stop
end if
if(A-B-C+D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"-",B,"-",C,"+",D,"=7"
  stop
end if
if(A-B-C-D==7)then
  print"(i0,A,i0,A,i0,A,i0)",A,"-",B,"-",C,"-",D,"=7"
  stop
end if
end