import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    }
} import java.util.*; util.* java public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    } main {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String in = sc.next(); in sc.next() sc.next sc int A = in.charAt(0) - '0'; A in.charAt(0) - '0' in.charAt(0) in.charAt in 0 '0' int B = in.charAt(1) - '0'; B in.charAt(1) - '0' in.charAt(1) in.charAt in 1 '0' int C = in.charAt(2) - '0'; C in.charAt(2) - '0' in.charAt(2) in.charAt in 2 '0' int D = in.charAt(3) - '0'; D in.charAt(3) - '0' in.charAt(3) in.charAt in 3 '0' List<String> op = new ArrayList<>(); op new ArrayList<>() for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	} int i = 1; int i = 1; i 1 i < Math.pow(2, 3) i Math.pow(2, 3) Math.pow Math 2 3 i++ i++ i {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	} {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	} String opr = Integer.toString(i, 2); opr Integer.toString(i, 2) Integer.toString Integer i 2 if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		} opr.length() == 1 opr.length() opr.length opr 1 {
    			opr = "0" + "0" + opr;
    		} opr = "0" + "0" + opr opr "0" + "0" + opr "0" + "0" + opr "0" "0" opr if (opr.length() == 2) {
    			opr = "0" + opr;
    		} opr.length() == 2 opr.length() opr.length opr 2 {
    			opr = "0" + opr;
    		} opr = "0" + opr opr "0" + opr "0" opr op.add(opr.replace('1', '+').replace('0', '-')) op.add op opr.replace('1', '+').replace('0', '-') opr.replace('1', '+').replace opr.replace('1', '+') opr.replace opr '1' '+' '0' '-' for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	} String s op {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	} {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	} int num = 0; num 0 if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		} s.charAt(0) == '+' s.charAt(0) s.charAt s 0 '+' {
    			num = A + B;
    		} num = A + B num A + B A B {
    			num = A - B;
    		} num = A - B num A - B A B if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		} s.charAt(1) == '+' s.charAt(1) s.charAt s 1 '+' {
    			num += C;
    		} num += C num C {
    			num -= C;
    		} num -= C num C if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		} s.charAt(2) == '+' s.charAt(2) s.charAt s 2 '+' {
    			num += D;
    		} num += D num D {
    			num -= D;
    		} num -= D num D if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		} num == 7 num 7 {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		} System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7") System.out.println System.out System System.out "" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7" D s.charAt(2) C s.charAt(1) B s.charAt(0) "" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7" "" A s.charAt(0) s.charAt s 0 B s.charAt(1) s.charAt s 1 C s.charAt(2) s.charAt s 2 D "=7" System.exit(0) System.exit System 0 String[] args args public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    }
} public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    }
} Main
import java.util.*;
 
public class Main {
	
    public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String in = sc.next();
    	int A = in.charAt(0) - '0';
    	int B = in.charAt(1) - '0';
    	int C = in.charAt(2) - '0';
    	int D = in.charAt(3) - '0';
    	List<String> op = new ArrayList<>();
    	for (int i = 1; i < Math.pow(2, 3); i++) {
    		String opr = Integer.toString(i, 2);
    		if (opr.length() == 1) {
    			opr = "0" + "0" + opr;
    		} else if (opr.length() == 2) {
    			opr = "0" + opr;
    		}
    		op.add(opr.replace('1', '+').replace('0', '-'));
    	}
    	for (String s : op) {
    		int num = 0;
    		if (s.charAt(0) == '+') {
    			num = A + B;
    		} else {
    			num = A - B;
    		}
    		if (s.charAt(1) == '+') {
    			num += C;
    		} else {
    			num -= C;
    		}
    		if (s.charAt(2) == '+') {
    			num += D;
    		} else {
    			num -= D;
    		}
    		if (num == 7) {
    			System.out.println("" + A + s.charAt(0) + B + s.charAt(1) + C + s.charAt(2) + D + "=7");
    			System.exit(0);
    		}
    	}
    }
}