// "static void main" must be defined in a public class.
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    }
    private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    }
    private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    } main {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String str = scan.nextLine(); str scan.nextLine() scan.nextLine scan int[] sign = new int[4]; sign new int[4] 4 for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        } int i = 0; int i = 0; i 0 i < Math.pow(4,2) i Math.pow(4,2) Math.pow Math 4 2 i++ i++ i {
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        } {
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        } for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            } int j = 0; int j = 0; j 0 j < 4 j 4 j++ j++ j {
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            } {
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            } if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;} (i>>j & 1) == 1 (i>>j & 1) i>>j i j 1 1 {sign[j] = 1;} sign[j] = 1 sign[j] sign j 1 {sign[j] = -1;} sign[j] = -1 sign[j] sign j -1 1 int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0'); ans sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0') sign[2] * (str.charAt(2)-'0') sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0') sign[0] * (str.charAt(0)-'0') sign[0] sign 0 (str.charAt(0)-'0') str.charAt(0) str.charAt str 0 '0' sign[1] * (str.charAt(1)-'0') sign[1] sign 1 (str.charAt(1)-'0') str.charAt(1) str.charAt str 1 '0' sign[2] * (str.charAt(2)-'0') sign[2] sign 2 (str.charAt(2)-'0') str.charAt(2) str.charAt str 2 '0' sign[3] * (str.charAt(3)-'0') sign[3] sign 3 (str.charAt(3)-'0') str.charAt(3) str.charAt str 3 '0' if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            } ans == 7 ans 7 {
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            } String head = new String(); head new String() if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                } str.charAt(0)-'0' != 0 str.charAt(0)-'0' str.charAt(0) str.charAt str 0 '0' 0 {
                    head = cv(sign[0]) == "+"?"":"-";
                } head = cv(sign[0]) == "+"?"":"-" head cv(sign[0]) == "+"?"":"-" cv(sign[0]) == "+" cv(sign[0]) cv sign[0] sign 0 "+" "" "-" System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7") System.out.println System.out System System.out head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7" (str.charAt(3)-'0') cv(sign[3]) (str.charAt(2)-'0') cv(sign[2]) (str.charAt(1)-'0') cv(sign[1]) head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7" head (str.charAt(0)-'0') str.charAt(0) str.charAt str 0 '0' cv(sign[1]) cv sign[1] sign 1 (str.charAt(1)-'0') str.charAt(1) str.charAt str 1 '0' cv(sign[2]) cv sign[2] sign 2 (str.charAt(2)-'0') str.charAt(2) str.charAt str 2 '0' cv(sign[3]) cv sign[3] sign 3 (str.charAt(3)-'0') str.charAt(3) str.charAt str 3 '0' "=7" break; String[] args args private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        } cv {
            if(a == 1){return "+";}
            else{return "-";}
        } if(a == 1){return "+";}
            else{return "-";} a == 1 a 1 {return "+";} return "+"; "+" {return "-";} return "-"; "-" int a a public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    }
    private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    }
    private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        }
} Main
// "static void main" must be defined in a public class.
import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        int[] sign = new int[4];
        for(int i = 0; i < Math.pow(4,2); i++){
            for(int j = 0; j < 4; j++){
                if((i>>j & 1) == 1){sign[j] = 1;}
                else{sign[j] = -1;}
            }
            int ans = sign[0] * (str.charAt(0)-'0') + 
                sign[1] * (str.charAt(1)-'0') + 
                sign[2] * (str.charAt(2)-'0') + 
                sign[3] * (str.charAt(3)-'0');
            if(ans == 7){
                String head = new String();
                if(str.charAt(0)-'0' != 0){
                    head = cv(sign[0]) == "+"?"":"-";
                }
                System.out.println(head+(str.charAt(0)-'0')
                                  +cv(sign[1])+(str.charAt(1)-'0')
                                  +cv(sign[2])+(str.charAt(2)-'0')
                                  +cv(sign[3])+(str.charAt(3)-'0') +"=7");
                break;
            }
        }
        
    }
    private static String cv(int a){
            if(a == 1){return "+";}
            else{return "-";}
        }
}