import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] x = new int[4]; x new int[4] 4 char[] y = new char[3]; y new char[3] 3 x[0] = Integer.parseInt(s.substring(0,1)) x[0] x 0 Integer.parseInt(s.substring(0,1)) Integer.parseInt Integer s.substring(0,1) s.substring s 0 1 x[1] = Integer.parseInt(s.substring(1,2)) x[1] x 1 Integer.parseInt(s.substring(1,2)) Integer.parseInt Integer s.substring(1,2) s.substring s 1 2 x[2] = Integer.parseInt(s.substring(2,3)) x[2] x 2 Integer.parseInt(s.substring(2,3)) Integer.parseInt Integer s.substring(2,3) s.substring s 2 3 x[3] = Integer.parseInt(s.substring(3,4)) x[3] x 3 Integer.parseInt(s.substring(3,4)) Integer.parseInt Integer s.substring(3,4) s.substring s 3 4 for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		} int i = 0 ; int i = 0 ; i 0 i < 8 i 8 i++ i++ i {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		} {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		} int sum = x[0]; sum x[0] x 0 for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			} int j = 0 ; int j = 0 ; j 0 j < 3 j 3 j++ j++ j {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			} {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			} if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				} (1 & (i>>j)) == 1 (1 & (i>>j)) 1 (i>>j) i j 1 {
					sum += x[3-j];
					y[2-j] = '+';

				} sum += x[3-j] sum x[3-j] x 3-j 3 j y[2-j] = '+' y[2-j] y 2-j 2 j '+' {
					sum -= x[3-j];
					y[2-j] = '-';
				} sum -= x[3-j] sum x[3-j] x 3-j 3 j y[2-j] = '-' y[2-j] y 2-j 2 j '-' if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			} sum == 7 sum 7 {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			} System.out.print(x[0]) System.out.print System.out System System.out x[0] x 0 System.out.print(y[0]) System.out.print System.out System System.out y[0] y 0 System.out.print(x[1]) System.out.print System.out System System.out x[1] x 1 System.out.print(y[1]) System.out.print System.out System System.out y[1] y 1 System.out.print(x[2]) System.out.print System.out System System.out x[2] x 2 System.out.print(y[2]) System.out.print System.out System System.out y[2] y 2 System.out.print(x[3]) System.out.print System.out System System.out x[3] x 3 System.out.print("=7") System.out.print System.out System System.out "=7" return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	}
} Main
import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int[] x = new int[4];
		char[] y = new char[3];

		x[0] = Integer.parseInt(s.substring(0,1));
		x[1] = Integer.parseInt(s.substring(1,2));
		x[2] = Integer.parseInt(s.substring(2,3));
		x[3] = Integer.parseInt(s.substring(3,4));


		for(int i = 0 ; i < 8 ; i++) {
			int sum = x[0];    
			for(int j = 0 ; j < 3 ; j++) {
				if((1 & (i>>j)) == 1) {
					sum += x[3-j];
					y[2-j] = '+';

				} else {
					sum -= x[3-j];
					y[2-j] = '-';
				}
			}
			if(sum == 7) {
				System.out.print(x[0]);
				System.out.print(y[0]);
				System.out.print(x[1]);
				System.out.print(y[1]);
				System.out.print(x[2]);
				System.out.print(y[2]);
				System.out.print(x[3]);
				System.out.print("=7");
				return;
			}
		}
	}
}
