#include <time.h>

#include <stdlib.h>
#include <cstdint>
#include <cassert>
#include <algorithm>
#include <functional>
#include <iostream>
#include <limits>
#include <cstdint>
#include <cassert>
#include <algorithm>
#include <functional>
#include <iostream>
#include <limits>
#include <vector>
#include <map>
#include <set>
#include <iomanip>
#include <numeric>

using namespace std;
#include <cstdint>
#include <vector>
#include <string>
int64_t pow(int64_t a,int64_t b){//a^bを求める
	if(b==0){
		return 1;
	}else{
		int64_t temp = pow(a,b/2);
		temp = temp * temp;
		if(b%2==1){
			temp = temp * a;
		}
		return temp;
	}
}
class Digit{
protected:
	int32_t m_base;
	std::vector<int32_t> m_digit;
public:
	class WrongBaseException{

	};

	Digit(const  int32_t base,const int64_t num):m_base(base){
		if(num<m_base){
			m_digit.push_back(num);
		}else{
			int64_t copy_num=num;
			while(true){
				int32_t temp=copy_num%m_base;
				m_digit.push_back(temp);
				copy_num=copy_num/base;
				if(copy_num<base){
					m_digit.push_back(copy_num);
					break;
				}
			}
		}

	}
	Digit(const std::string& s){
		m_base=10;
		for(int64_t i=s.size()-1;i>=0;--i){
			const char &c=s.at(i);
			switch(c){
			case '0':
				m_digit.push_back(0);
				break;
			case '1':
				m_digit.push_back(1);
				break;
			case '2':
				m_digit.push_back(2);
				break;
			case '3':
				m_digit.push_back(3);
				break;
			case '4':
				m_digit.push_back(4);
				break;
			case '5':
				m_digit.push_back(5);
				break;
			case '6':
				m_digit.push_back(6);
				break;
			case '7':
				m_digit.push_back(7);
				break;
			case '8':
				m_digit.push_back(8);
				break;
			case '9':
				m_digit.push_back(9);
				break;

			}
		}
	}
	Digit(const int32_t base,const std::vector<int32_t> digit):m_base(base),m_digit(digit){
	}
	std::vector<int32_t>* getDigit() const{
		vector<int32_t>* retval=new vector<int32_t>(m_digit);
		return retval;
	}
	operator int64_t() const{
		int64_t ans=0;
		for(std::vector<int32_t>::size_type i=0;i<m_digit.size();i++){
			ans+=pow(m_base,i)*m_digit.at(i);
		}
		return ans;
	}
	Digit& operator++(){
		(*this)+=Digit(m_base,1);
		return *this;
	}

	Digit& operator+=(const Digit& a){
		if(m_base!=a.m_base){
			throw WrongBaseException();
		}
		std::vector<int32_t> copy = m_digit;
		m_digit.clear();
		int32_t carry_up=0;
		for(std::vector<int32_t>::size_type i=0;i<std::max(copy.size(),a.m_digit.size());i++){
			int32_t temp_digit=0;
			if(i<copy.size()){
				temp_digit+=copy.at(i);
			}
			if(i<a.m_digit.size()){
				temp_digit+=a.m_digit.at(i);
			}
			temp_digit+=carry_up;
			carry_up=temp_digit/m_base;
			m_digit.push_back(temp_digit%m_base);
		}
		if(carry_up!=0){
			m_digit.push_back(carry_up);
		}
		return *this;
	}
	Digit operator+(const Digit& a) const{
		Digit retval(*this);
		retval+=a;
		return retval;;
	}
	Digit& operator-=(const Digit& a){
		if(m_base!=a.m_base){
			throw WrongBaseException();
		}
		if(m_digit.size()<a.m_digit.size()){
			throw std::underflow_error("Underflow in digit class");
		}
		std::vector<int32_t> copy=m_digit;
		m_digit.clear();
		int32_t carry_down=0;
		for(std::vector<int32_t>::size_type i=0;i<copy.size();i++){
			int32_t temp_digit=copy.at(i);
			if(i<a.m_digit.size()){
				temp_digit-=a.m_digit.at(i);
			}
			temp_digit-=carry_down;
			if(temp_digit<0){
				temp_digit+=m_base;
				carry_down=1;
			}else{
				carry_down=0;
			}
			m_digit.push_back(temp_digit);
		}
		if(carry_down>0){
			throw std::underflow_error("Underflow in digit class");
		}
		return *this;
	}
	Digit operator-(const Digit& a) const{
		Digit retval(*this);
		retval-=a;
		return retval;;
	}
	Digit& operator--(){
		(*this)-=Digit(m_base,1);
		return *this;
	}
};
int main(){
	char a[4];
	cin>>a[0]>>a[1]>>a[2]>>a[3];
	int n[4];
	for(int i1=0;i1<4;i1++){
		n[i1]=(a[i1]-'0');
	}
	for(Digit i(2,0);(long)i<pow(2,3);++i){
		int temp_ans=n[0];
		vector<int32_t> digit=*(i.getDigit());
		digit.resize(3);
		for(int i2=0;i2<3;i2++){
			if(digit.at(i2)==0){
				temp_ans-=n[i2+1];
			}else{
				temp_ans+=n[i2+1];
			}
		}
		if(temp_ans==7){
			cout<<n[0];
			for(int i2=0;i2<3;i2++){
				if(digit.at(i2)==0){
					cout<<"-";
				}else{
					cout<<"+";
				}
				cout<<n[i2+1];
			}
			cout<<"=7"<<endl;
			break;
		}
	}


}


Measured memory_bytes: 256