import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int[] abcd = new int[4]; abcd new int[4] 4 for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            abcd[i] = Character.getNumericValue(s[i]);
        } {
            abcd[i] = Character.getNumericValue(s[i]);
        } abcd[i] = Character.getNumericValue(s[i]) abcd[i] abcd i Character.getNumericValue(s[i]) Character.getNumericValue Character s[i] s i for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        } {
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        } String opi = (i == 0) ? "+" : "-"; opi (i == 0) ? "+" : "-" (i == 0) i 0 "+" "-" int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1]; tmp (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1] (i == 0) i 0 abcd[0] + abcd[1] abcd[0] abcd 0 abcd[1] abcd 1 abcd[0] - abcd[1] abcd[0] abcd 0 abcd[1] abcd 1 for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            } {
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            } String opj = (j == 0) ? "+" : "-"; opj (j == 0) ? "+" : "-" (j == 0) j 0 "+" "-" tmp += (j == 0) ? abcd[2] : -abcd[2] tmp (j == 0) ? abcd[2] : -abcd[2] (j == 0) j 0 abcd[2] abcd 2 -abcd[2] abcd[2] abcd 2 for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                } {
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                } String opk = (k == 0) ? "+" : "-"; opk (k == 0) ? "+" : "-" (k == 0) k 0 "+" "-" tmp += (k == 0) ? abcd[3] : -abcd[3] tmp (k == 0) ? abcd[3] : -abcd[3] (k == 0) k 0 abcd[3] abcd 3 -abcd[3] abcd[3] abcd 3 if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    } tmp == 7 tmp 7 {
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    } System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7") System.out.println System.out System System.out abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7" abcd[3] opk abcd[2] opj abcd[1] abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7" abcd[0] abcd 0 opi abcd[1] abcd 1 opj abcd[2] abcd 2 opk abcd[3] abcd 3 "=7" return; tmp -= (k == 0) ? abcd[3] : -abcd[3] tmp (k == 0) ? abcd[3] : -abcd[3] (k == 0) k 0 abcd[3] abcd 3 -abcd[3] abcd[3] abcd 3 tmp -= (j == 0) ? abcd[2] : -abcd[2] tmp (j == 0) ? abcd[2] : -abcd[2] (j == 0) j 0 abcd[2] abcd 2 -abcd[2] abcd[2] abcd 2 String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] abcd = new int[4];
        for(int i = 0; i < 4; i++){
            abcd[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            String opi = (i == 0) ? "+" : "-";
            int tmp = (i == 0) ? abcd[0] + abcd[1] : abcd[0] - abcd[1];
            
            for(int j = 0; j < 2; j++){
                
                String opj = (j == 0) ? "+" : "-";
                tmp += (j == 0) ? abcd[2] : -abcd[2];
                
                for(int k = 0; k < 2; k++){
                    String opk = (k == 0) ? "+" : "-";
                    tmp += (k == 0) ? abcd[3] : -abcd[3];
                    
                    if(tmp == 7){
                        System.out.println(abcd[0] + opi + abcd[1] + opj + abcd[2] + opk + abcd[3] + "=7");
                        return;
                    }
                    tmp -= (k == 0) ? abcd[3] : -abcd[3];
                }
                
                tmp -= (j == 0) ? abcd[2] : -abcd[2];
            }
        }
    }
}
