import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    } main {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = 4; n 4 int[] array = new int[n]; array new int[n] n String s = sc.next(); s sc.next() sc.next sc for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } array[i] = Integer.parseInt(String.valueOf(s.charAt(i))) array[i] array i Integer.parseInt(String.valueOf(s.charAt(i))) Integer.parseInt Integer String.valueOf(s.charAt(i)) String.valueOf String s.charAt(i) s.charAt s i for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        } int op1 = 0; int op1 = 0; op1 0 op1 < 2 op1 2 op1++ op1++ op1 {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        } {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        } int tmp = 0; tmp 0 if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            } op1 == 0 op1 0 {
                tmp = array[0] + array[1];
            } tmp = array[0] + array[1] tmp array[0] + array[1] array[0] array 0 array[1] array 1 {
                tmp = array[0] - array[1];
            } tmp = array[0] - array[1] tmp array[0] - array[1] array[0] array 0 array[1] array 1 for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            } int op2 = 0; int op2 = 0; op2 0 op2 < 2 op2 2 op2++ op2++ op2 {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            } {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            } int tmp2 = 0; tmp2 0 if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                } op2 == 0 op2 0 {
                    tmp2 += array[2];
                } tmp2 += array[2] tmp2 array[2] array 2 {
                    tmp2 -= array[2];
                } tmp2 -= array[2] tmp2 array[2] array 2 for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                } int op3 = 0; int op3 = 0; op3 0 op3 < 2 op3 2 op3++ op3++ op3 {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                } {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                } int tmp3 = 0; tmp3 0 if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    } op3 == 0 op3 0 {
                        tmp3 += array[3];
                    } tmp3 += array[3] tmp3 array[3] array 3 {
                        tmp3 -= array[3];
                    } tmp3 -= array[3] tmp3 array[3] array 3 if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    } tmp + tmp2 + tmp3 == 7 tmp + tmp2 + tmp3 tmp + tmp2 + tmp3 tmp tmp2 tmp3 7 {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    } String str = ""; str "" str += array[0] str array[0] array 0 if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        } op1 == 0 op1 0 {
                            str += "+";
                        } str += "+" str "+" {
                            str += "-";
                        } str += "-" str "-" str += array[1] str array[1] array 1 if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        } op2 == 0 op2 0 {
                            str += "+";
                        } str += "+" str "+" {
                            str += "-";
                        } str += "-" str "-" str += array[2] str array[2] array 2 if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        } op3 == 0 op3 0 {
                            str += "+";
                        } str += "+" str "+" {
                            str += "-";
                        } str += "-" str "-" str += array[3] str array[3] array 3 str += "=7" str "=7" System.out.println(str) System.out.println System.out System System.out str return; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here! 
        Scanner sc = new Scanner(System.in);
        int n = 4;
        int[] array = new int[n];
        String s = sc.next();
        for (int i = 0; i < n; i++) {
            array[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        for (int op1 = 0; op1 < 2; op1++) {
            int tmp = 0;
            if (op1 == 0) {
                tmp = array[0] + array[1];
            } else {
                tmp = array[0] - array[1];
            }
            for (int op2 = 0; op2 < 2; op2++) {
                int tmp2 = 0;
                if (op2 == 0) {
                    tmp2 += array[2];
                } else {
                    tmp2 -= array[2];
                }
                for (int op3 = 0; op3 < 2; op3++) {
                    int tmp3 = 0;
                    if (op3 == 0) {
                        tmp3 += array[3];
                    } else {
                        tmp3 -= array[3];
                    }
                    
                    if (tmp + tmp2 + tmp3 == 7) {
                        String str = "";
                        str += array[0];
                        if (op1 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[1];
                        if (op2 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[2];
                        if (op3 == 0) {
                            str += "+";
                        } else {
                            str += "-";
                        }
                        str += array[3];
                        str += "=7";
                        System.out.println(str);
                        return;
                    }
                }
            }
        }
    }
}