program ABC079C
    implicit none
    integer(8)::A,B,C,D,N,op(2),ans(3),i,j,k,flg
    character(1)::out(3)
    read*,N
    A=N/1000
    B=(N-A*1000)/100
    C=(N-A*1000-B*100)/10
    D=mod(N,10)
    op(1)=1
    op(2)=-1
    flg=0

    do i=1,2
        ans(1)=op(i)
        do j=1,2
            ans(2)=op(j)
            do k=1,2
                ans(3)=op(k)
                if(A+ans(1)*B+ans(2)*C+ans(3)*D==7)then
                    flg=1
                    exit
                end if
            end do
            if(flg==1)exit
        end do
        if(flg==1)exit
    end do

    do i=1,3
        if(ans(i)==1)out(i)="+"
        if(ans(i)==-1)out(i)="-"
    end do

    print'(i0,A,i0,A,i0,A,i0,A)',A,out(1),B,out(2),C,out(3),D,"=7"
end program ABC079C