#include<iostream>
using namespace std;

int main() {
	int A, B, C, D, N;
	cin >> N;
	D = N % 10;
	C = ((N - D) / 10) % 10;
	B = ((N - C - D) / 100) % 10;
	A = (N - B - C - D) / 1000;
	
	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) {
					cout << A << (i == 1 ? "+" : "-") << B << (j == 1 ? "+" : "-") << C << (k == 1 ? "+" : "-") << D << "=7";
					return 0;
				}
			}
		}
	}
	return 0;
}