import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String abcd = scan.next(); abcd scan.next() scan.next scan scan.close() scan.close scan String[] array = abcd.split(""); array abcd.split("") abcd.split abcd "" int a = Integer.valueOf(array[0]); a Integer.valueOf(array[0]) Integer.valueOf Integer array[0] array 0 int b = Integer.valueOf(array[1]); b Integer.valueOf(array[1]) Integer.valueOf Integer array[1] array 1 int c = Integer.valueOf(array[2]); c Integer.valueOf(array[2]) Integer.valueOf Integer array[2] array 2 int d = Integer.valueOf(array[3]); d Integer.valueOf(array[3]) Integer.valueOf Integer array[3] array 3 int[] symbol = {-1, 1}; symbol {-1, 1} -1 1 1 for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		} {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		} for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			} int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			} {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			} for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				} int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				} {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				} if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					} a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7 a + b * symbol[i] + c * symbol[j] + d * symbol[k] c * symbol[j] a + b * symbol[i] + c * symbol[j] + d * symbol[k] a b * symbol[i] b symbol[i] symbol i c * symbol[j] c symbol[j] symbol j d * symbol[k] d symbol[k] symbol k 7 {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					} System.out.print(a) System.out.print System.out System System.out a System.out.print(i == 0?"-":"+") System.out.print System.out System System.out i == 0?"-":"+" i == 0 i 0 "-" "+" System.out.print(b) System.out.print System.out System System.out b System.out.print(j==0?"-":"+") System.out.print System.out System System.out j==0?"-":"+" j==0 j 0 "-" "+" System.out.print(c) System.out.print System.out System System.out c System.out.print(k==0?"-":"+") System.out.print System.out System System.out k==0?"-":"+" k==0 k 0 "-" "+" System.out.print(d) System.out.print System.out System System.out d System.out.println("=7") System.out.println System.out System System.out "=7" return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String abcd = scan.next();
		scan.close();

		String[] array = abcd.split("");
		int a = Integer.valueOf(array[0]);
		int b = Integer.valueOf(array[1]);
		int c = Integer.valueOf(array[2]);
		int d = Integer.valueOf(array[3]);

		int[] symbol = {-1, 1};
		for(int i = 0; i < 2; i++) {
			for(int j = 0; j < 2; j++) {
				for(int k = 0; k < 2; k++) {
					if(a + b * symbol[i] + c * symbol[j] + d * symbol[k] == 7) {
						System.out.print(a);
						System.out.print(i == 0?"-":"+");
						System.out.print(b);
						System.out.print(j==0?"-":"+");
						System.out.print(c);
						System.out.print(k==0?"-":"+");
						System.out.print(d);
						System.out.println("=7");
						return;
					}
				}
			}
		}
	}
}
