import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	}

} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] n = new int[s.length()]; n new int[s.length()] s.length() s.length s for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		} int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i {
			n[i] = Character.getNumericValue(s.charAt(i));
		} {
			n[i] = Character.getNumericValue(s.charAt(i));
		} n[i] = Character.getNumericValue(s.charAt(i)) n[i] n i Character.getNumericValue(s.charAt(i)) Character.getNumericValue Character s.charAt(i) s.charAt s i char[] op = {'-', '+'}; op {'-', '+'} '-' '+' char[] tempOp = {'-', '-', '-'}; tempOp {'-', '-', '-'} '-' '-' '-' for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		} int i = 0; int i = 0; i 0 i < 1 << 3 i 1 << 3 1 3 i++ i++ i {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		} {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		} for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			} {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			} if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				} (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
					tempOp[j] = '+';
				} tempOp[j] = '+' tempOp[j] tempOp j '+' String str = String.valueOf(tempOp); str String.valueOf(tempOp) String.valueOf String tempOp int temp = 0; temp 0 switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			} str case "---": "---" case "---": temp = n[0] - n[1] - n[2] - n[3] temp n[0] - n[1] - n[2] - n[3] n[2] n[0] - n[1] - n[2] - n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "--+": "--+" case "--+": temp = n[0] - n[1] - n[2] + n[3] temp n[0] - n[1] - n[2] + n[3] n[0] - n[1] - n[2] n[0] - n[1] - n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "-+-": "-+-" case "-+-": temp = n[0] - n[1] + n[2] - n[3] temp n[0] - n[1] + n[2] - n[3] n[0] - n[1] + n[2] n[0] - n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "-++": "-++" case "-++": temp = n[0] - n[1] + n[2] + n[3] temp n[0] - n[1] + n[2] + n[3] n[0] - n[1] + n[2] + n[3] n[0] - n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "+--": "+--" case "+--": temp = n[0] + n[1] - n[2] - n[3] temp n[0] + n[1] - n[2] - n[3] n[0] + n[1] - n[2] - n[3] n[0] + n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "+-+": "+-+" case "+-+": temp = n[0] + n[1] - n[2] + n[3] temp n[0] + n[1] - n[2] + n[3] n[0] + n[1] - n[2] n[0] + n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "++-": "++-" case "++-": temp = n[0] + n[1] + n[2] - n[3] temp n[0] + n[1] + n[2] - n[3] n[0] + n[1] + n[2] n[0] + n[1] + n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; case "+++": "+++" case "+++": temp = n[0] + n[1] + n[2] + n[3] temp n[0] + n[1] + n[2] + n[3] n[2] n[0] + n[1] + n[2] + n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 break; if(temp == 7) {
				break;
			} temp == 7 temp 7 {
				break;
			} break; for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				tempOp[j] = '-';
			} {
				tempOp[j] = '-';
			} tempOp[j] = '-' tempOp[j] tempOp j '-' System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7") System.out.println System.out System System.out n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7" "=" n[3] "" tempOp[2] "" n[2] "" tempOp[1] "" n[1] "" tempOp[0] n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7" n[0] n 0 "" tempOp[0] tempOp 0 "" n[1] n 1 "" tempOp[1] tempOp 1 "" n[2] n 2 "" tempOp[2] tempOp 2 "" n[3] n 3 "=" "7" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] n = new int[s.length()];
		for(int i = 0; i < s.length(); i++) {
			n[i] = Character.getNumericValue(s.charAt(i));
		}
		
		char[] op = {'-', '+'};
		char[] tempOp = {'-', '-', '-'};
		
		for(int i = 0; i < 1 << 3; i++) {	
			
			for(int j = 0; j < 3; j++) {
				
				if((i >> j & 1) == 1) {
					tempOp[j] = '+';
				}
				
			}
			
			String str = String.valueOf(tempOp);
			int temp = 0;
			switch(str) {
			case "---":
				temp = n[0] - n[1] - n[2] - n[3];
				break;
			case "--+":
				temp = n[0] - n[1] - n[2] + n[3];
				break;
			case "-+-":
				temp = n[0] - n[1] + n[2] - n[3];
				break;
			case "-++":
				temp = n[0] - n[1] + n[2] + n[3];
				break;
			case "+--":
				temp = n[0] + n[1] - n[2] - n[3];
				break;
			case "+-+":
				temp = n[0] + n[1] - n[2] + n[3];
				break;
			case "++-":
				temp = n[0] + n[1] + n[2] - n[3];
				break;
			case "+++":
				temp = n[0] + n[1] + n[2] + n[3];
				break;
			}
			
			if(temp == 7) {
				break;
			}
			
			for(int j = 0; j < 3; j++) {
				tempOp[j] = '-';
			}
			
		}
		
		System.out.println(n[0] + "" + tempOp[0] + "" + n[1] + "" + tempOp[1] + "" + n[2] + "" + tempOp[2] + "" + n[3] + "=" + "7");
		
	}

}
