program ABC_079_C_TrainTicket
   implicit none
   integer N, i, D, A(1:4)
   read(*, *) N
   do i = 1, 4
       A(5 - i) = mod(N, 10)
	   N = N / 10
   end do
   D = 7 - A(1)
   if(A(2) + A(3) + A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'+',A(2),'+',A(3),'+',A(4),'=',7
   else if(-A(2) + A(3) + A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'-',A(2),'+',A(3),'+',A(4),'=',7
   else if(A(2) - A(3) + A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'+',A(2),'-',A(3),'+',A(4),'=',7
   else if(A(2) + A(3) - A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'+',A(2),'+',A(3),'-',A(4),'=',7
   else if(A(2) + A(3) + A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'-',A(2),'+',A(3),'+',A(4),'=',7
   else if(-A(2) - A(3) + A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'-',A(2),'-',A(3),'+',A(4),'=',7
   else if(-A(2) + A(3) - A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'-',A(2),'+',A(3),'-',A(4),'=',7
   else if(A(2) - A(3) - A(4) == D) then
       write(*, "(i1,a1,i1,a1,i1,a1,i1,a1,i1)")A(1),'+',A(2),'-',A(3),'-',A(4),'=',7
   end if
end program ABC_079_C_TrainTicket