import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		String s = sc.next();
		int a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	}
} 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 a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		String s = sc.next();
		int a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	} main {
		Scanner sc = new Scanner((System.in));
		String s = sc.next();
		int a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	} Scanner sc = new Scanner((System.in)); sc new Scanner((System.in)) String s = sc.next(); s sc.next() sc.next sc int a = Integer.valueOf(s.substring(0, 1)); a Integer.valueOf(s.substring(0, 1)) Integer.valueOf Integer s.substring(0, 1) s.substring s 0 1 int b = Integer.valueOf(s.substring(1, 2)); b Integer.valueOf(s.substring(1, 2)) Integer.valueOf Integer s.substring(1, 2) s.substring s 1 2 int c = Integer.valueOf(s.substring(2, 3)); c Integer.valueOf(s.substring(2, 3)) Integer.valueOf Integer s.substring(2, 3) s.substring s 2 3 int d = Integer.valueOf(s.substring(3, 4)); d Integer.valueOf(s.substring(3, 4)) Integer.valueOf Integer s.substring(3, 4) s.substring s 3 4 String op1 = "" op1 "" op2 = "" op2 "" op3 = ""; op3 "" if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a + b + c + d) == 7 (a + b + c + d) c a + b + c + d a b c d 7 {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} op1 = "+" op1 "+" op2 = "+" op2 "+" op3 = "+" op3 "+" if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a + b + c - d) == 7 (a + b + c - d) a + b + c a + b + c a b c d 7 {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} op1 = "+" op1 "+" op2 = "+" op2 "+" op3 = "-" op3 "-" if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a + b - c + d) == 7 (a + b - c + d) a + b - c a + b a b c d 7 {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} op1 = "+" op1 "+" op2 = "-" op2 "-" op3 = "+" op3 "+" if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a - b + c + d) == 7 (a - b + c + d) a - b + c + d a - b a b c d 7 {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} op1 = "-" op1 "-" op2 = "+" op2 "+" op3 = "+" op3 "+" if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a + b - c - d) == 7 (a + b - c - d) a + b - c - d a + b a b c d 7 {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} op1 = "+" op1 "+" op2 = "-" op2 "-" op3 = "-" op3 "-" if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a - b + c - d) == 7 (a - b + c - d) a - b + c a - b a b c d 7 {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} op1 = "-" op1 "-" op2 = "+" op2 "+" op3 = "-" op3 "-" if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} (a - b - c + d) == 7 (a - b - c + d) a - b - c a - b - c a b c d 7 {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} op1 = "-" op1 "-" op2 = "-" op2 "-" op3 = "+" op3 "+" {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		} op1 = "-" op1 "-" op2 = "-" op2 "-" op3 = "-" op3 "-" System.out.println(a+op1+b+op2+c+op3+d+"=7") System.out.println System.out System System.out a+op1+b+op2+c+op3+d+"=7" d op3 c op2 b a+op1+b+op2+c+op3+d+"=7" a op1 b op2 c op3 d "=7" sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		String s = sc.next();
		int a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner((System.in));
		String s = sc.next();
		int a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	}
} 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 a = Integer.valueOf(s.substring(0, 1));
		int b = Integer.valueOf(s.substring(1, 2));
		int c = Integer.valueOf(s.substring(2, 3));
		int d = Integer.valueOf(s.substring(3, 4));
		String op1 = "", op2 = "", op3 = "";
		
		if ((a + b + c + d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "+";
		} else if ((a + b + c - d) == 7) {
			op1 = "+";
			op2 = "+";
			op3 = "-";
		} else if ((a + b - c + d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "+";
		} else if ((a - b + c + d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "+";
		} else if ((a + b - c - d) == 7) {
			op1 = "+";
			op2 = "-";
			op3 = "-";
		} else if ((a - b + c - d) == 7) {
			op1 = "-";
			op2 = "+";
			op3 = "-";
		} else if ((a - b - c + d) == 7) {
			op1 = "-";
			op2 = "-";
			op3 = "+";
		} else {
			op1 = "-";
			op2 = "-";
			op3 = "-";
		}
		
		System.out.println(a+op1+b+op2+c+op3+d+"=7");

		sc.close();
	}
}
