import java.util.Scanner;
     
class Main{
    public static void main(String arg[]) {
        Scanner sc = new Scanner(System.in);
        
        String S = sc.nextLine();
        sc.close();
        String[] ope = {"+","-"};
        int ans = 0;
        String[] s = S.split("");

        int A = Integer.parseInt(s[0]);
        int B = Integer.parseInt(s[1]);
        int C = Integer.parseInt(s[2]);
        int D = Integer.parseInt(s[3]);
       
        for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(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();
        sc.close();
        String[] ope = {"+","-"};
        int ans = 0;
        String[] s = S.split("");

        int A = Integer.parseInt(s[0]);
        int B = Integer.parseInt(s[1]);
        int C = Integer.parseInt(s[2]);
        int D = Integer.parseInt(s[3]);
       
        for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        }
    }
} Main public static void main(String arg[]) {
        Scanner sc = new Scanner(System.in);
        
        String S = sc.nextLine();
        sc.close();
        String[] ope = {"+","-"};
        int ans = 0;
        String[] s = S.split("");

        int A = Integer.parseInt(s[0]);
        int B = Integer.parseInt(s[1]);
        int C = Integer.parseInt(s[2]);
        int D = Integer.parseInt(s[3]);
       
        for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        
        String S = sc.nextLine();
        sc.close();
        String[] ope = {"+","-"};
        int ans = 0;
        String[] s = S.split("");

        int A = Integer.parseInt(s[0]);
        int B = Integer.parseInt(s[1]);
        int C = Integer.parseInt(s[2]);
        int D = Integer.parseInt(s[3]);
       
        for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.nextLine(); S sc.nextLine() sc.nextLine sc sc.close() sc.close sc String[] ope = {"+","-"}; ope {"+","-"} "+" "-" int ans = 0; ans 0 String[] s = S.split(""); s S.split("") S.split S "" int A = Integer.parseInt(s[0]); A Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int B = Integer.parseInt(s[1]); B Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int C = Integer.parseInt(s[2]); C Integer.parseInt(s[2]) Integer.parseInt Integer s[2] s 2 int D = Integer.parseInt(s[3]); D Integer.parseInt(s[3]) Integer.parseInt Integer s[3] s 3 for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        } {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        } for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            } {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            } for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                } {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                } int sum = A; sum A sum += (i == 0) ? 0 - B : B sum (i == 0) ? 0 - B : B (i == 0) i 0 0 - B 0 B B sum += (j == 0) ? 0 - C : C sum (j == 0) ? 0 - C : C (j == 0) j 0 0 - C 0 C C sum += (k == 0) ? 0 - D : D sum (k == 0) ? 0 - D : D (k == 0) k 0 0 - D 0 D D if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    } sum == 7 sum 7 {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    } String ope1 = (i == 0) ? "-" : "+"; ope1 (i == 0) ? "-" : "+" (i == 0) i 0 "-" "+" String ope2 = (j == 0) ? "-" : "+"; ope2 (j == 0) ? "-" : "+" (j == 0) j 0 "-" "+" String ope3 = (k == 0) ? "-" : "+"; ope3 (k == 0) ? "-" : "+" (k == 0) k 0 "-" "+" System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7") System.out.println System.out System System.out 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.exit(0) System.exit System 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();
        sc.close();
        String[] ope = {"+","-"};
        int ans = 0;
        String[] s = S.split("");

        int A = Integer.parseInt(s[0]);
        int B = Integer.parseInt(s[1]);
        int C = Integer.parseInt(s[2]);
        int D = Integer.parseInt(s[3]);
       
        for(int i = 0; i < 2; i++) {    
            for(int j = 0; j < 2; j++) {
                for(int k = 0; k < 2; k++) {
                    int sum = A;
                    sum += (i == 0) ? 0 - B : B;
                    sum += (j == 0) ? 0 - C : C;
                    sum += (k == 0) ? 0 - D : D;
 
                    if (sum == 7) {
                        String ope1 = (i == 0) ? "-" : "+";
                        String ope2 = (j == 0) ? "-" : "+";
                        String ope3 = (k == 0) ? "-" : "+";
                        System.out.println(A + ope1 + B + ope2 + C + ope3 + D + "=7");
                        System.exit(0);
                    }
                }
            }
        }
    }
}