#include <iostream>

using namespace std;

int main()
{
    int A,B,C,D;
    cin >> A >> B >> C >> D;
    if(A+B+C+D==7)
        cout << A << "+" << B << "+" << C << "+" << D << "=7" << endl;
    else if(A+B+C-D==7)
        cout << A << "+" << B << "+" << C << "-" << D << "=7" << endl;
    else if(A+B-C+D==7)
        cout << A << "+" << B << "-" << C << "+" << D << "=7" << endl;
    else if(A+B-C-D==7)
        cout << A << "+" << B << "-" << C << "-" << D << "=7" << endl;
    else if(A-B-C-D==7)
        cout << A << "-" << B << "-" << C << "-" << D << "=7" << endl;
    else if(A-B+C+D==7)
        cout << A << "-" << B << "+" << C << "+" << D << "=7" << endl;
    else if(A-B+C-D==7)
        cout << A << "-" << B << "+" << C << "-" << D << "=7" << endl;
    else if(A-B-C+D==7)
        cout << A << "-" << B << "-" << C << "+" << D << "=7" << endl;

    return 0;
}
