import java.util.*;
public class Main {

	public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	}

} import java.util.*; util.* java public class Main {

	public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	}

} Main public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	} main {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	} int ABCD = (new Scanner(System.in)).nextInt(); ABCD (new Scanner(System.in)).nextInt() (new Scanner(System.in)).nextInt (new Scanner(System.in)) int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10}; A {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10} ABCD /1000 ABCD 1000 ABCD % 1000 / 100 ABCD % 1000 ABCD 1000 100 ABCD % 100 /10 ABCD % 100 ABCD 100 10 ABCD % 10 ABCD 10 boolean[] plus = new boolean[3]; plus new boolean[3] 3 for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		} int i = 0; int i = 0; i 0 i < 1 << 3 i 1 << 3 1 3 i++ i++ i {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		} {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		} int sum = A[0]; sum A[0] A 0 for(int j = 0; j < 3; j++)
				plus[j] = false; int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j plus[j] = false; plus[j] = false plus[j] plus j false for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			} {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			} if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1]; (1 & (i >> j)) == 1 (1 & (i >> j)) 1 (i >> j) i j 1 {
					sum += A[j+1];
					plus[j] = true;
				} sum += A[j+1] sum A[j+1] A j+1 j 1 plus[j] = true plus[j] plus j true sum -= A[j+1] sum A[j+1] A j+1 j 1 if(sum == 7)
				break; sum == 7 sum 7 break; System.out.print(A[0]) System.out.print System.out System System.out A[0] A 0 for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		} {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		} System.out.print(plus[i] ? "+" : "-") System.out.print System.out System System.out plus[i] ? "+" : "-" plus[i] plus i "+" "-" System.out.print(A[i+1]) System.out.print System.out System System.out A[i+1] A i+1 i 1 System.out.println("=" + 7) System.out.println System.out System System.out "=" + 7 "=" 7 String[] args args public class Main {

	public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	}

} public class Main {

	public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	}

} Main
import java.util.*;
public class Main {

	public static void main(String[] args) {
		int ABCD = (new Scanner(System.in)).nextInt();
		int[] A = {ABCD /1000, ABCD % 1000 / 100, ABCD % 100 /10, ABCD % 10};
		boolean[] plus = new boolean[3];
		for(int i = 0; i < 1 << 3; i++) {
			int sum = A[0];
			for(int j = 0; j < 3; j++)
				plus[j] = false;
			for(int j = 0; j < 3; j++) {
				if((1 & (i >> j)) == 1) {
					sum += A[j+1];
					plus[j] = true;
				}
				else 
					sum -= A[j+1];
			}
			if(sum == 7)
				break;
		}
		System.out.print(A[0]);
		for(int i = 0; i < 3; i++) {
			System.out.print(plus[i] ? "+" : "-");
			System.out.print(A[i+1]);		
		}
		System.out.println("=" + 7);
	}

}