#include <iostream>

using namespace std;

int main()
{
    int a,b,c,d,n,i,j,k=1,t[8][3]={0,0,0,1,1,1,0,0,1,0,1,0,1,0,0,1,1,0,1,0,1,0,1,1};
    cin>>n;
    a=n/1000;
    n=n-1000*a;
    b=n/100;
    n=n-100*b;
    c=n/10;
    n=n-10*c;
    d=n;
    for(i=0;i<8;++i)
    {
        n=a;
        for(j=0;j<3;++j)
        {
            if(j==0)
            {
                if(t[i][j]==1)n+=b;
                else n-=b;
            }
             if(j==1)
            {
                if(t[i][j]==1)n+=c;
                else n-=c;
            }
             if(j==2)
            {
                if(t[i][j]==1)n+=d;
                else n-=d;
            }
            if(n==7)
            {
                cout<<a;
                if(t[i][0]==1)cout<<"+";
                else cout<<"-";
                cout <<b;
                if(t[i][1]==1)cout<<"+";
                else cout<<"-";
                cout<<c;
                if(t[i][2]==1)cout<<"+";
                else cout<<"-";
                cout<<d<<"="<<n<<endl;
                k=0;
                break;
            }
        }
        if(k==0)break;
    }
    return 0;
}
