import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	} main {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ABCD = sc.next(); ABCD sc.next() sc.next sc String[] ABCD_Array = ABCD.split("", 0); ABCD_Array ABCD.split("", 0) ABCD.split ABCD "" 0 int a = Integer.parseInt(ABCD_Array[0]); a Integer.parseInt(ABCD_Array[0]) Integer.parseInt Integer ABCD_Array[0] ABCD_Array 0 int b = Integer.parseInt(ABCD_Array[1]); b Integer.parseInt(ABCD_Array[1]) Integer.parseInt Integer ABCD_Array[1] ABCD_Array 1 int c = Integer.parseInt(ABCD_Array[2]); c Integer.parseInt(ABCD_Array[2]) Integer.parseInt Integer ABCD_Array[2] ABCD_Array 2 int d = Integer.parseInt(ABCD_Array[3]); d Integer.parseInt(ABCD_Array[3]) Integer.parseInt Integer ABCD_Array[3] ABCD_Array 3 String op1 = ""; op1 "" String op2 = ""; op2 "" String op3 = ""; op3 "" System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7") System.out.println System.out System System.out String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7" String.valueOf(d) op3 String.valueOf(c) op2 String.valueOf(b) String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7" String.valueOf(a) String.valueOf String a op1 String.valueOf(b) String.valueOf String b op2 String.valueOf(c) String.valueOf String c op3 String.valueOf(d) String.valueOf String d "=7" String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
	    String ABCD = sc.next();

	    String[] ABCD_Array = ABCD.split("", 0);



	    int a = Integer.parseInt(ABCD_Array[0]);
	    int b = Integer.parseInt(ABCD_Array[1]);
	    int c = Integer.parseInt(ABCD_Array[2]);
	    int d = Integer.parseInt(ABCD_Array[3]);

	    String op1 = "";
	    String op2 = "";
	    String op3 = "";

	    loop: for (int i = -1; i <= 1; i +=2) {
	    	int tmp_answer = 0;
	    	 for (int j = -1; j <= 1; j +=2) {
	    		 for (int k = -1; k <= 1; k +=2) {
	    			 tmp_answer = a + b * i + c * j + d * k;
	    			 if (tmp_answer == 7) {

	    				 if (i == -1) {
	    					 op1 = "-";
	    				 }
	    				 else {
	    					 op1 = "+";
	    				 }

	    				 if (j == -1) {
	    					 op2 = "-";
	    				 }
	    				 else {
	    					 op2 = "+";
	    				 }

	    				 if (k == -1) {
	    					 op3 = "-";
	    				 }
	    				 else {
	    					 op3 = "+";
	    				 }

	    				 break loop;
	    			 }
	    		 }
	    	 }
	    }
	    System.out.println(String.valueOf(a) + op1 + String.valueOf(b) + op2 + String.valueOf(c) + op3 + String.valueOf(d) + "=7");
	}
}