#include<iostream>

using namespace std;

int main()
{
    int a,b,c,d,n;
    int a0,b0,c0,d0;
    int i = 1,j = 1,k = 1,l = 1;
    cin >> n;
    a = n/1000;
    b = (n - (a*1000))/100;
    c = (n - (a*1000) - (b*100))/10;
    d = n%10;
    a0 = a;
    b0 = b;
    c0 = c;
    d0 = d;
    for(i = 1; i<=2; i++)
    {
        if( i == 2)
        {
            a = -a;
        }
        for(j = 1; j<=2; j++)
        {
            if( j == 2)
        {
            b = -b;
        }
            for(k = 1; k<=2; k++)
            {
                if( k == 2)
        {
            c = -c;
        }
                for(l = 1; l<=2; l++)
                {
                    if( l == 2)
        {
            d = -d;
        }
                    if( a + b + c + d == 7 )
    {
        if(i == 2) cout << "-";
        cout << a0;
        if(j == 1) cout << "+";
        if(j == 2) cout << "-";
        cout << b0;
        if(k == 1) cout << "+";
        if(k == 2) cout << "-";
        cout << c0;
        if(l == 1) cout << "+";
        if(l == 2) cout << "-";
        cout << d0;
        cout << "=7";

    }
                }
            }
        }
    }

    return 0;
}















