    import java.util.Scanner;
     
    class Main{
    	public static void main(String arg[]) {
    		Scanner sc = new Scanner(System.in);
    		String S = sc.nextLine();
    		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));
    		sc.close();
    	
			int ans = 0;
    		String[] ope = {"+","-"};
    		for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		}
		}
    } import java.util.Scanner; Scanner java.util class Main{
    	public static void main(String arg[]) {
    		Scanner sc = new Scanner(System.in);
    		String S = sc.nextLine();
    		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));
    		sc.close();
    	
			int ans = 0;
    		String[] ope = {"+","-"};
    		for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		}
		}
    } Main public static void main(String arg[]) {
    		Scanner sc = new Scanner(System.in);
    		String S = sc.nextLine();
    		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));
    		sc.close();
    	
			int ans = 0;
    		String[] ope = {"+","-"};
    		for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		}
		} main {
    		Scanner sc = new Scanner(System.in);
    		String S = sc.nextLine();
    		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));
    		sc.close();
    	
			int ans = 0;
    		String[] ope = {"+","-"};
    		for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		}
		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine 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 sc.close() sc.close sc int ans = 0; ans 0 String[] ope = {"+","-"}; ope {"+","-"} "+" "-" for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		} {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		} String ope1 = ope[i]; ope1 ope[i] ope i for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			} int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			} {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			} String ope2 = ope[j]; ope2 ope[j] ope j for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				} int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				} {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				} String ope3 = ope[k]; ope3 ope[k] ope k if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			} ope[i].equals("+") ope[i].equals ope[i] ope i "+" {
    	    				ans = A + B;
    	    			} ans = A + B ans A + B A B {
    	    				ans = A - B;
    	    			} ans = A - B ans A - B A B if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			} ope[j].equals("+") ope[j].equals ope[j] ope j "+" {
        					ans += C;
            			} ans += C ans C {
            				ans -= C;
            			} ans -= C ans C if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			} ope[k].equals("+") ope[k].equals ope[k] ope k "+" {
    						ans += D;
            			} ans += D ans D {
            				ans -= D;
            			} ans -= D ans D if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			} ans == 7 ans 7 {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			} String s = A + ope1 + B + ope2 + C + ope3 + D + "=7"; s A + ope1 + B + ope2 + C + ope3 + D + "=7" D ope3 C ope2 B A + ope1 + B + ope2 + C + ope3 + D + "=7" A ope1 B ope2 C ope3 D "=7" System.out.println(s) System.out.println System.out System System.out s System.exit(0) System.exit System 0 {
    	    				ans = 0;
    	    			} ans = 0 ans 0 String arg[] arg
    import java.util.Scanner;
     
    class Main{
    	public static void main(String arg[]) {
    		Scanner sc = new Scanner(System.in);
    		String S = sc.nextLine();
    		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));
    		sc.close();
    	
			int ans = 0;
    		String[] ope = {"+","-"};
    		for(int i = 0; i < 2; i++) {
    			String ope1 = ope[i];
    			for(int j = 0; j < 2; j++) {
    				String ope2 = ope[j];
    				for(int k = 0; k < 2; k++) {
    					String ope3 = ope[k];
    					if(ope[i].equals("+")) {
    	    				ans = A + B;
    	    			}else {
    	    				ans = A - B;
    	    			}
    					if(ope[j].equals("+")) {
        					ans += C;
            			}else {
            				ans -= C;
            			}
    					if(ope[k].equals("+")) {
    						ans += D;
            			}else {
            				ans -= D;
            			}
    					if(ans == 7) {
    						String s = A + ope1 + B + ope2 + C + ope3 + D + "=7";
    						System.out.println(s);
    						System.exit(0);
    	    			}else {
    	    				ans = 0;
    	    			}
    				}
    			}
    		}
		}
    }