import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	}
} import java.util.ArrayList; ArrayList java.util import java.util.HashMap; HashMap java.util import java.util.Map; Map java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	}
} Main public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	} main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ABCD = sc.next(); ABCD sc.next() sc.next sc sc.close() sc.close sc ArrayList<Integer> abcdList = new ArrayList<>(); abcdList new ArrayList<>() for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		} {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		} abcdList.add(Integer.parseInt(ABCD.substring(i,i+1))) abcdList.add abcdList Integer.parseInt(ABCD.substring(i,i+1)) Integer.parseInt Integer ABCD.substring(i,i+1) ABCD.substring ABCD i i+1 i 1 Map<Integer, String> Mappp = new HashMap<>(); Mappp new HashMap<>() Mappp.put(0, "+") Mappp.put Mappp 0 "+" Mappp.put(1, "-") Mappp.put Mappp 1 "-" String answer = ""; answer "" for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		} int a = 0; int a = 0; a 0 a < 2 a 2 a++ a++ a {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		} {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		} for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			} int b = 0; int b = 0; b 0 b < 2 b 2 b++ b++ b {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			} {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			} for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				} int c = 0; int c = 0; c 0 c < 2 c 2 c++ c++ c {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				} {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				} int ans = abcdList.get(0); ans abcdList.get(0) abcdList.get abcdList 0 if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					} a==0 a 0 {
						ans += abcdList.get(1);
					} ans += abcdList.get(1) ans abcdList.get(1) abcdList.get abcdList 1 {
						ans -= abcdList.get(1);
					} ans -= abcdList.get(1) ans abcdList.get(1) abcdList.get abcdList 1 if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					} b==0 b 0 {
						ans += abcdList.get(2);
					} ans += abcdList.get(2) ans abcdList.get(2) abcdList.get abcdList 2 {
						ans -= abcdList.get(2);
					} ans -= abcdList.get(2) ans abcdList.get(2) abcdList.get abcdList 2 if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					} c==0 c 0 {
						ans += abcdList.get(3);
					} ans += abcdList.get(3) ans abcdList.get(3) abcdList.get abcdList 3 {
						ans -= abcdList.get(3);
					} ans -= abcdList.get(3) ans abcdList.get(3) abcdList.get abcdList 3 if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					} ans == 7 && answer.equals("") ans == 7 ans 7 answer.equals("") answer.equals answer "" {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					} answer += abcdList.get(0).toString() + Mappp.get(a) answer abcdList.get(0).toString() + Mappp.get(a) abcdList.get(0).toString() abcdList.get(0).toString abcdList.get(0) abcdList.get abcdList 0 Mappp.get(a) Mappp.get Mappp a answer += abcdList.get(1).toString() + Mappp.get(b) answer abcdList.get(1).toString() + Mappp.get(b) abcdList.get(1).toString() abcdList.get(1).toString abcdList.get(1) abcdList.get abcdList 1 Mappp.get(b) Mappp.get Mappp b answer += abcdList.get(2).toString() + Mappp.get(c) answer abcdList.get(2).toString() + Mappp.get(c) abcdList.get(2).toString() abcdList.get(2).toString abcdList.get(2) abcdList.get abcdList 2 Mappp.get(c) Mappp.get Mappp c answer += abcdList.get(3).toString() + "=7" answer abcdList.get(3).toString() + "=7" abcdList.get(3).toString() abcdList.get(3).toString abcdList.get(3) abcdList.get abcdList 3 "=7" break; System.out.println(answer) System.out.println System.out System System.out answer String[] args args public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	}
} public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	}
} Main
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		String ABCD = sc.next();
		sc.close();

		ArrayList<Integer> abcdList = new ArrayList<>();

		for(int i = 0; i < 4; i++) {
			abcdList.add(Integer.parseInt(ABCD.substring(i,i+1)));
		}

		Map<Integer, String> Mappp = new HashMap<>();
		Mappp.put(0, "+");
		Mappp.put(1, "-");

		String answer = "";

		for(int a = 0; a < 2; a++) {
			//aが2番目
			for(int b = 0; b < 2; b++) {
				//bが2番目
				for(int c = 0; c < 2; c++) {
					int ans = abcdList.get(0);
					if(a==0) {
						ans += abcdList.get(1);
					}else {
						ans -= abcdList.get(1);
					}

					if(b==0) {
						ans += abcdList.get(2);
					}else {
						ans -= abcdList.get(2);
					}

					if(c==0) {
						ans += abcdList.get(3);
					}else {
						ans -= abcdList.get(3);
					}

					if(ans == 7 && answer.equals("")) {
						answer += abcdList.get(0).toString() + Mappp.get(a);
						answer += abcdList.get(1).toString() + Mappp.get(b);
						answer += abcdList.get(2).toString() + Mappp.get(c);
						answer += abcdList.get(3).toString() + "=7" ;
						break;
					}
				}
			}
		}

		System.out.println(answer);
	}
}
