#include <iostream>
#include <cstring>

int main(int argc, char *argv[]) {  
	int n;
	std::cin >> n;
	int a = n/1000, b = (n%1000)/100, c = (n%100)/10, d = n%10;
	for(int i = -1; i <= 1; i+=2) {
		for(int j = -1; j <= 1; j+=2) {
			for(int k = -1; k <= 1; k+=2) {
				if(a+i*b+j*c+k*d == 7) {
					std::cout << a << (i==1?"+":"-") << b<< (j==1?"+":"-") << c << (k==1?"+":"-") << d << "=7\n";
					return 0;
				}
			}
		}
	}
	return 0;
}