program main
	implicit none
	integer input
	integer a,b,c,d
	integer i,j,k
	integer ans
	character ii,jj,kk
	read(*,*)input
	a=input/1000
	input=input-a*1000
	b=input/100
	input=input-b*100
	c=input/10
	input=input-c*10
	d=input
	input=input-d
	do i=1,2
		do j=1,2
			do k=1,2
				ans=a+(-1)**i*b+(-1)**j*c+(-1)**k*d
				if(ans==7)goto10
			enddo
		enddo
	enddo
10	continue
	if(i==1)then
		ii="-"
	else
		ii="+"
	endif
	if(j==1)then
		jj="-"
	else
		jj="+"
	endif
	if(k==1)then
		kk="-"
	else
		kk="+"
	endif
	write(*,"(i1,a1,i1,a1,i1,a1,i1,a1,i1)")a,ii,b,jj,c,kk,d,"=",7
end program main
