#include <iostream>
#include <cstring>
#include <ctime>
#include <cstdlib>
#include <cmath>
#define PI 3.1415926

using namespace std;

char op(int a,int i,int b)
{
    if(i==0)return a+b;
    if(i==1)return a-b;
}

int v(int x)
{
    if(x==0)cout<<"+";
        if(x==1)cout<<"-";
}

int main()
{
    int a,b,c,d,f;
    cin>>f;
    a=f/1000;
    b=f/100-a*10;
    c=f/10-a*100-b*10;
    d=f%10;
    int i,j,k;
    for(i=0;i<=1;i++)
    {
        for(j=0;j<=1;j++)
        {
            for(k=0;k<=1;k++)
            {
                if(op(op(a,i,b),j,op(c,k,d))==7)
                    {cout<<a;v(i);cout<<b;v(j);cout<<c;v(k);cout<<d<<"=7"<<endl;}
            }
        }
    }




}

