#include<iostream>
#include<string.h>
#include<ctime>
#include<fstream>
#include<vector>
int zhuan(int a,int b,int c,int d)
{
    int cnt=0;
    if((a+b+c+d)==7)cnt++;
    if((a+b+c-d)==7)cnt++;
    if((a+b-c+d)==7)cnt++;
    if((a+b-c-d)==7)cnt++;
    if((a-b+c+d)==7)cnt++;
    if((a-b+c-d)==7)cnt++;
    if((a-b-c+d)==7)cnt++;
    if((a-b-c-d)==7)cnt++;
    return cnt;
}
using namespace std;
int main()
{
    int a,b,c,d;
    string s;
    bool t=false;
    cin>>s;
    a=s[0]-'0';
    b=s[1]-'0';
    c=s[2]-'0';
    d=s[3]-'0';
    if(zhuan(a, b, c, d)>1){
    if((a+b+c+d)==7)
    {
        if(t==false)
            cout<<a<<'+'<<b<<'+'<<c<<'+'<<d<<"=7"<<endl<<endl;
        else
            cout<<a<<'+'<<b<<'+'<<c<<'+'<<d<<"=7 is also a valid solution."<<endl;
        t=true;
    }
        if((a+b+c-d)==7)
        {
            if(t==false)
                cout<<a<<'+'<<b<<'+'<<c<<'-'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'+'<<b<<'+'<<c<<'-'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a+b-c+d)==7)
        {
            if(t==false)
                cout<<a<<'+'<<b<<'-'<<c<<'+'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'+'<<b<<'-'<<c<<'+'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a+b-c-d)==7)
        {
            if(t==false)
                cout<<a<<'+'<<b<<'-'<<c<<'-'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'+'<<b<<'-'<<c<<'-'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a-b+c+d)==7)
        {
            if(t==false)
                cout<<a<<'-'<<b<<'+'<<c<<'+'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'-'<<b<<'+'<<c<<'+'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a-b+c-d)==7)
        {
            if(t==false)
                cout<<a<<'-'<<b<<'+'<<c<<'-'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'-'<<b<<'+'<<c<<'-'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a-b-c+d)==7)
        {
            if(t==false)
                cout<<a<<'-'<<b<<'-'<<c<<'+'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'-'<<b<<'-'<<c<<'+'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
        if((a-b-c-d)==7)
        {
            if(t==false)
                cout<<a<<'-'<<b<<'-'<<c<<'-'<<d<<"=7"<<endl<<endl;
            else
                cout<<a<<'-'<<b<<'-'<<c<<'-'<<d<<"=7 is also a valid solution."<<endl;
            t=true;
        }
    }
    else
    {
        if((a+b+c+d)==7)
            cout<<a<<'+'<<b<<'+'<<c<<'+'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a+b+c-d)==7)
            cout<<a<<'+'<<b<<'+'<<c<<'-'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a+b-c+d)==7)
            cout<<a<<'+'<<b<<'-'<<c<<'+'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a+b-c-d)==7)
            cout<<a<<'+'<<b<<'-'<<c<<'-'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a-b+c+d)==7)
            cout<<a<<'-'<<b<<'+'<<c<<'+'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a-b+c-d)==7)
            cout<<a<<'-'<<b<<'+'<<c<<'-'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a-b-c+d)==7)
            cout<<a<<'-'<<b<<'-'<<c<<'+'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
        if((a-b-c-d)==7)
            cout<<a<<'-'<<b<<'-'<<c<<'-'<<d<<"=7"<<endl<<endl<<"This is the only valid solution."<<endl;
    }
    return 0;
}
