import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	}

	private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	}

	private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	}
} Main public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	} main {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] input = sc.next().split(""); input sc.next().split("") sc.next().split sc.next() sc.next sc "" int a = Integer.valueOf(input[0]); a Integer.valueOf(input[0]) Integer.valueOf Integer input[0] input 0 int b = Integer.valueOf(input[1]); b Integer.valueOf(input[1]) Integer.valueOf Integer input[1] input 1 int c = Integer.valueOf(input[2]); c Integer.valueOf(input[2]) Integer.valueOf Integer input[2] input 2 int d = Integer.valueOf(input[3]); d Integer.valueOf(input[3]) Integer.valueOf Integer input[3] input 3 int answer = 0; answer 0 for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		} {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		} if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			} i == 0 i 0 {
				answer = a + b;
			} answer = a + b answer a + b a b {
				answer = a - b;
			} answer = a - b answer a - b a b int tmpanswer1 = answer; tmpanswer1 answer for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			} int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			} {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			} answer = tmpanswer1 answer tmpanswer1 if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				} j == 0 j 0 {
					answer += c;
				} answer += c answer c {
					answer -= c;
				} answer -= c answer c int tmpAnswer2 = answer; tmpAnswer2 answer for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				} int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				} {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				} answer = tmpAnswer2 answer tmpAnswer2 if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					} k == 0 k 0 {
						answer += d;
					} answer += d answer d {
						answer -= d;
					} answer -= d answer d if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					} answer == 7 answer 7 {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					} System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7") System.out.println System.out System System.out a + convert(i) + b + convert(j) + c + convert(k) + d + "=7" d convert(k) c convert(j) b a + convert(i) + b + convert(j) + c + convert(k) + d + "=7" a convert(i) convert i b convert(j) convert j c convert(k) convert k d "=7" return; String[] args args private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	} convert {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	} if(i == 0) {
			return "+";
		}else {
			return "-";
		} i == 0 i 0 {
			return "+";
		} return "+"; "+" {
			return "-";
		} return "-"; "-" int i i public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	}

	private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	}
} public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	}

	private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {


		Scanner sc = new Scanner(System.in);
		String[] input = sc.next().split("");
		int a = Integer.valueOf(input[0]);
		int b = Integer.valueOf(input[1]);
		int c = Integer.valueOf(input[2]);
		int d = Integer.valueOf(input[3]);
		int answer = 0;
		for(int i = 0; i < 2; i++) {
			if(i == 0) {
				answer = a + b;
			}else {
				answer = a - b;
			}
			int tmpanswer1 = answer;
			for(int j = 0; j < 2; j++) {
				answer = tmpanswer1;
				if(j == 0) {
					answer += c;
				}else {
					answer -= c;
				}
				int tmpAnswer2 = answer;
				for(int k = 0; k < 2; k++) {
					answer = tmpAnswer2;
					if(k == 0) {
						answer += d;
					}else {
						answer -= d;
					}
					if(answer == 7) {
						System.out.println(a + convert(i) + b + convert(j) + c + convert(k) + d + "=7");
						return;
					}
				}
			}
		}
	}

	private static String convert(int i) {
		if(i == 0) {
			return "+";
		}else {
			return "-";
		}
	}
}