import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}
} import java.io.InputStream; InputStream java.io import java.io.PrintStream; PrintStream java.io import java.util.Scanner; Scanner java.util public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}
} Main InputStream in = System.in; in System.in System System.in PrintStream out = System.out; out System.out System System.out public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	} _main {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	} Scanner sc = new Scanner(in); sc new Scanner(in) int ABCD = sc.nextInt(); ABCD sc.nextInt() sc.nextInt sc sc.close() sc.close sc int A = ABCD / 1000; A ABCD / 1000 ABCD 1000 int B = ABCD / 100 % 10; B ABCD / 100 % 10 ABCD / 100 ABCD 100 10 int C = ABCD / 10 % 10; C ABCD / 10 % 10 ABCD / 10 ABCD 10 10 int D = ABCD % 10; D ABCD % 10 ABCD 10 int ans = 0; ans 0 for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		} int i = 0; int i = 0; i 0 i < 1 << 3 i 1 << 3 1 3 i++ i++ i {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		} {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		} int res = A; res A if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			} ((i >> 0) & 0x1) == 0 ((i >> 0) & 0x1) (i >> 0) i 0 0x1 0 {
				res += B;
			} res += B res B {
				res -= B;
			} res -= B res B if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			} ((i >> 1) & 0x1) == 0 ((i >> 1) & 0x1) (i >> 1) i 1 0x1 0 {
				res += C;
			} res += C res C {
				res -= C;
			} res -= C res C if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			} ((i >> 2) & 0x1) == 0 ((i >> 2) & 0x1) (i >> 2) i 2 0x1 0 {
				res += D;
			} res += D res D {
				res -= D;
			} res -= D res D if (res == 7) {
				ans = i;
				break;
			} res == 7 res 7 {
				ans = i;
				break;
			} ans = i ans i break; StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(A) sb.append sb A sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-") sb.append sb ((ans >> 0) & 0x1) == 0 ? "+" : "-" ((ans >> 0) & 0x1) == 0 ((ans >> 0) & 0x1) (ans >> 0) ans 0 0x1 0 "+" "-" sb.append(B) sb.append sb B sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-") sb.append sb ((ans >> 1) & 0x1) == 0 ? "+" : "-" ((ans >> 1) & 0x1) == 0 ((ans >> 1) & 0x1) (ans >> 1) ans 1 0x1 0 "+" "-" sb.append(C) sb.append sb C sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-") sb.append sb ((ans >> 2) & 0x1) == 0 ? "+" : "-" ((ans >> 2) & 0x1) == 0 ((ans >> 2) & 0x1) (ans >> 2) ans 2 0x1 0 "+" "-" sb.append(D) sb.append sb D sb.append("=7") sb.append sb "=7" out.println(sb.toString()) out.println out sb.toString() sb.toString sb String[] args args public static void main(String[] args) {
		new Main()._main(args);
	} main {
		new Main()._main(args);
	} new Main()._main(args) new Main()._main new Main() args String[] args args public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}
} public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}
} Main
import java.io.InputStream;
import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	InputStream in = System.in;
	PrintStream out = System.out;

	public void _main(String[] args) {
		Scanner sc = new Scanner(in);

		int ABCD = sc.nextInt();

		sc.close();

		int A = ABCD / 1000;
		int B = ABCD / 100 % 10;
		int C = ABCD / 10 % 10;
		int D = ABCD % 10;

		int ans = 0;
		for (int i = 0; i < 1 << 3; i++) {

			int res = A;

			if (((i >> 0) & 0x1) == 0) {
				res += B;
			} else {
				res -= B;
			}

			if (((i >> 1) & 0x1) == 0) {
				res += C;
			} else {
				res -= C;
			}

			if (((i >> 2) & 0x1) == 0) {
				res += D;
			} else {
				res -= D;
			}

			if (res == 7) {
				ans = i;
				break;
			}
		}

		StringBuilder sb = new StringBuilder();
		sb.append(A);
		sb.append(((ans >> 0) & 0x1) == 0 ? "+" : "-");
		sb.append(B);
		sb.append(((ans >> 1) & 0x1) == 0 ? "+" : "-");
		sb.append(C);
		sb.append(((ans >> 2) & 0x1) == 0 ? "+" : "-");
		sb.append(D);
		sb.append("=7");

		out.println(sb.toString());
	}

	public static void main(String[] args) {
		new Main()._main(args);
	}
}
