import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int A = Integer.parseInt(s.substring(0,1));
		int B = Integer.parseInt(s.substring(1,2));
		int C = Integer.parseInt(s.substring(2,3));
		int D = Integer.parseInt(s.substring(3,4));
		int[] list = {A,B,C,D};

		for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		}

	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int A = Integer.parseInt(s.substring(0,1));
		int B = Integer.parseInt(s.substring(1,2));
		int C = Integer.parseInt(s.substring(2,3));
		int D = Integer.parseInt(s.substring(3,4));
		int[] list = {A,B,C,D};

		for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		}

	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int A = Integer.parseInt(s.substring(0,1));
		int B = Integer.parseInt(s.substring(1,2));
		int C = Integer.parseInt(s.substring(2,3));
		int D = Integer.parseInt(s.substring(3,4));
		int[] list = {A,B,C,D};

		for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		}

	} main {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int A = Integer.parseInt(s.substring(0,1));
		int B = Integer.parseInt(s.substring(1,2));
		int C = Integer.parseInt(s.substring(2,3));
		int D = Integer.parseInt(s.substring(3,4));
		int[] list = {A,B,C,D};

		for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int A = Integer.parseInt(s.substring(0,1)); A Integer.parseInt(s.substring(0,1)) Integer.parseInt Integer s.substring(0,1) s.substring s 0 1 int B = Integer.parseInt(s.substring(1,2)); B Integer.parseInt(s.substring(1,2)) Integer.parseInt Integer s.substring(1,2) s.substring s 1 2 int C = Integer.parseInt(s.substring(2,3)); C Integer.parseInt(s.substring(2,3)) Integer.parseInt Integer s.substring(2,3) s.substring s 2 3 int D = Integer.parseInt(s.substring(3,4)); D Integer.parseInt(s.substring(3,4)) Integer.parseInt Integer s.substring(3,4) s.substring s 3 4 int[] list = {A,B,C,D}; list {A,B,C,D} A B C D for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		} int i=0; int i=0; i 0 i<1<<3 i 1<<3 1 3 i++ i++ i {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		} {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		} boolean[] ae = new boolean[3]; ae new boolean[3] 3 for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			} int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			} {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			} if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				} (1& i>>j) == 1 (1& i>>j) 1 i>>j i j 1 {
					ae[j] = true;
				} ae[j] = true ae[j] ae j true {
					ae[j] = false;
				} ae[j] = false ae[j] ae j false int total = 0; total 0 String ans = ""; ans "" for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			} int m=0; int m=0; m 0 m<list.length m list.length list list.length m++ m++ m {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			} {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			} if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				} m==0 m 0 {
					total += list[m];
					ans += list[m];
					continue;
				} total += list[m] total list[m] list m ans += list[m] ans list[m] list m continue; if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				} ae[m-1] ae m-1 m 1 {
					total += list[m];
					ans += "+"+list[m];
				} total += list[m] total list[m] list m ans += "+"+list[m] ans "+"+list[m] "+" list[m] list m {
					total -= list[m];
					ans += "-"+list[m];
				} total -= list[m] total list[m] list m ans += "-"+list[m] ans "-"+list[m] "-" list[m] list m if(total == 7) {
				System.out.println(ans+"=7");
				return;
			} total == 7 total 7 {
				System.out.println(ans+"=7");
				return;
			} System.out.println(ans+"=7") System.out.println System.out System System.out ans+"=7" ans "=7" return; String[] args args
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int A = Integer.parseInt(s.substring(0,1));
		int B = Integer.parseInt(s.substring(1,2));
		int C = Integer.parseInt(s.substring(2,3));
		int D = Integer.parseInt(s.substring(3,4));
		int[] list = {A,B,C,D};

		for(int i=0; i<1<<3;i++) {
			boolean[] ae = new boolean[3];
			for(int j=0; j<3; j++) {
				if((1& i>>j) == 1) {
					ae[j] = true;
				} else {
					ae[j] = false;
				}
			}
			int total = 0;
			String ans = "";
			for(int m=0;m<list.length;m++) {
				if(m==0) {
					total += list[m];
					ans += list[m];
					continue;
				}
				if(ae[m-1]) {
					total += list[m];
					ans += "+"+list[m];
				} else {
					total -= list[m];
					ans += "-"+list[m];
				}
			}
			if(total == 7) {
				System.out.println(ans+"=7");
				return;
			}
		}

	}
}
