import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int abcd = sc.nextInt(); abcd sc.nextInt() sc.nextInt 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 boolean op1 op1 op2 op2 op3; op3 if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a + b + c + d == 7 a + b + c + d c a + b + c + d a b c d 7 {
			op1 = op2 = op3 = true;
		} op1 = op2 = op3 = true op1 op2 = op3 = true op2 op3 = true op3 true if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a + b + c - d == 7 a + b + c - d a + b + c a + b + c a b c d 7 {
			op1 = op2 = true;
			op3 = false;
		} op1 = op2 = true op1 op2 = true op2 true op3 = false op3 false if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a + b - c + d == 7 a + b - c + d a + b - c a + b a b c d 7 {
			op1 = op3 = true;
			op2 = false;
		} op1 = op3 = true op1 op3 = true op3 true op2 = false op2 false if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a + b - c - d == 7 a + b - c - d a + b - c - d a + b a b c d 7 {
			op1 = true;
			op2 = op3 = false;
		} op1 = true op1 true op2 = op3 = false op2 op3 = false op3 false if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a - b + c + d == 7 a - b + c + d a - b + c + d a - b a b c d 7 {
			op1 = false;
			op2 = op3 = true;
		} op1 = false op1 false op2 = op3 = true op2 op3 = true op3 true if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a - b + c - d == 7 a - b + c - d a - b + c a - b a b c d 7 {
			op1 = op3 = false;
			op2 = true;
		} op1 = op3 = false op1 op3 = false op3 false op2 = true op2 true if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		} a - b - c + d == 7 a - b - c + d a - b - c a - b - c a b c d 7 {
			op1 = op2 = false;
			op3 = true;
		} op1 = op2 = false op1 op2 = false op2 false op3 = true op3 true {
			op1 = op2 = op3 = false;
		} op1 = op2 = op3 = false op1 op2 = op3 = false op2 op3 = false op3 false System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7") System.out.println System.out System System.out a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7" d (op3 ? "+" : "-") c (op2 ? "+" : "-") b a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7" a (op1 ? "+" : "-") op1 "+" "-" b (op2 ? "+" : "-") op2 "+" "-" c (op3 ? "+" : "-") op3 "+" "-" d "=7" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	}

} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int abcd = sc.nextInt();
		int a = abcd / 1000;
		int b = abcd / 100 % 10;
		int c = abcd / 10 % 10;
		int d = abcd % 10;
		boolean op1, op2, op3;
		if (a + b + c + d == 7) {
			op1 = op2 = op3 = true;
		} else if (a + b + c - d == 7) {
			op1 = op2 = true;
			op3 = false;
		} else if (a + b - c + d == 7) {
			op1 = op3 = true;
			op2 = false;
		} else if (a + b - c - d == 7) {
			op1 = true;
			op2 = op3 = false;
		} else if (a - b + c + d == 7) {
			op1 = false;
			op2 = op3 = true;
		} else if (a - b + c - d == 7) {
			op1 = op3 = false;
			op2 = true;
		} else if (a - b - c + d == 7) {
			op1 = op2 = false;
			op3 = true;
		} else {
			op1 = op2 = op3 = false;
		}

		System.out.println(a + (op1 ? "+" : "-")
				+ b + (op2 ? "+" : "-")
				+ c + (op3 ? "+" : "-")
				+ d + "=7");

		sc.close();
	}

}
