import java.util.Scanner;
public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String N = sc.next(); N sc.next() sc.next sc int A = N.charAt(0) - 48; A N.charAt(0) - 48 N.charAt(0) N.charAt N 0 48 int B = N.charAt(1) - 48; B N.charAt(1) - 48 N.charAt(1) N.charAt N 1 48 int C = N.charAt(2) - 48; C N.charAt(2) - 48 N.charAt(2) N.charAt N 2 48 int D = N.charAt(3) - 48; D N.charAt(3) - 48 N.charAt(3) N.charAt N 3 48 for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		} {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		} String bit = Integer.toBinaryString(i); bit Integer.toBinaryString(i) Integer.toBinaryString Integer i bit = String.format("%3s", bit).replaceAll(" ", "0") bit String.format("%3s", bit).replaceAll(" ", "0") String.format("%3s", bit).replaceAll String.format("%3s", bit) String.format String "%3s" bit " " "0" int count = 0; count 0 count = bit.charAt(0) == '0' ? A - B : A + B count bit.charAt(0) == '0' ? A - B : A + B bit.charAt(0) == '0' bit.charAt(0) bit.charAt bit 0 '0' A - B A B A + B A B count = bit.charAt(1) == '0' ? count - C : count + C count bit.charAt(1) == '0' ? count - C : count + C bit.charAt(1) == '0' bit.charAt(1) bit.charAt bit 1 '0' count - C count C count + C count C count = bit.charAt(2) == '0' ? count - D : count + D count bit.charAt(2) == '0' ? count - D : count + D bit.charAt(2) == '0' bit.charAt(2) bit.charAt bit 2 '0' count - D count D count + D count D if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			} count == 7 count 7 {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			} char op1 = bit.charAt(0) == '0' ? '-' : '+'; op1 bit.charAt(0) == '0' ? '-' : '+' bit.charAt(0) == '0' bit.charAt(0) bit.charAt bit 0 '0' '-' '+' char op2 = bit.charAt(1) == '0' ? '-' : '+'; op2 bit.charAt(1) == '0' ? '-' : '+' bit.charAt(1) == '0' bit.charAt(1) bit.charAt bit 1 '0' '-' '+' char op3 = bit.charAt(2) == '0' ? '-' : '+'; op3 bit.charAt(2) == '0' ? '-' : '+' bit.charAt(2) == '0' bit.charAt(2) bit.charAt bit 2 '0' '-' '+' 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 "" op1 A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7" A "" op1 "" B "" op2 "" C "" op3 "" D "=7" break; String[] args args public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	}
} public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	}
} Main
import java.util.Scanner;
public class Main {
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String N = sc.next();
		int A = N.charAt(0) - 48;
		int B = N.charAt(1) - 48;
		int C = N.charAt(2) - 48;
		int D = N.charAt(3) - 48;
		
		for (int i = 0; i < 8; i++) {
			String bit = Integer.toBinaryString(i);
			bit = String.format("%3s", bit).replaceAll(" ", "0");
			int count = 0;
			count = bit.charAt(0) == '0' ? A - B : A + B;
			count = bit.charAt(1) == '0' ? count - C : count + C;
			count = bit.charAt(2) == '0' ? count - D : count + D;
			
			if (count == 7) {
				char op1 = bit.charAt(0) == '0' ? '-' : '+';
				char op2 = bit.charAt(1) == '0' ? '-' : '+';
				char op3 = bit.charAt(2) == '0' ? '-' : '+';
				System.out.println(A + "" +  op1 + "" + B + "" + op2 + "" + C + "" + op3 + "" + D + "=7"); 
				break;
			}
		}
	}
}