import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    }

} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    }

} Main public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    } main {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String ABCD = sc.next(); ABCD sc.next() sc.next sc sc.close() sc.close sc String[] strArray = ABCD.split(""); strArray ABCD.split("") ABCD.split ABCD "" int[] abcd = new int[4]; abcd new int[4] 4 int sum = 0; sum 0 for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        } {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        } abcd[i] = Integer.parseInt(strArray[i]) abcd[i] abcd i Integer.parseInt(strArray[i]) Integer.parseInt Integer strArray[i] strArray i sum += abcd[i] sum abcd[i] abcd i int[] trueUseNum = new int[3]; trueUseNum new int[3] 3 for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        } int i=0; int i=0; i 0 i<(Math.pow(2,3)) i (Math.pow(2,3)) Math.pow Math 2 3 i++ i++ i {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        } {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        } int use = 0; use 0 int[] useNum = new int[3]; useNum new int[3] 3 for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            } {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            } if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    } (1&i>>j) == 1 (1&i>>j) 1 i>>j i j 1 {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } use += abcd[j+1] use abcd[j+1] abcd j+1 j 1 useNum[j] = 1 useNum[j] useNum j 1 {

                        useNum[j] = 0;
                    } useNum[j] = 0 useNum[j] useNum j 0 if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            } sum - use - use == 7 sum - use - use sum - use - use sum use use 7 {

                trueUseNum = useNum;
                break;
            } trueUseNum = useNum trueUseNum useNum break; System.out.print(abcd[0]) System.out.print System.out System System.out abcd[0] abcd 0 for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        } {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        } if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            } trueUseNum[i] == 0 trueUseNum[i] trueUseNum i 0 {

                System.out.print( "+" + abcd[i + 1]);
            } System.out.print( "+" + abcd[i + 1]) System.out.print System.out System System.out "+" + abcd[i + 1] "+" abcd[i + 1] abcd i + 1 i 1 {

                System.out.print( "-" + abcd[i + 1]);
            } System.out.print( "-" + abcd[i + 1]) System.out.print System.out System System.out "-" + abcd[i + 1] "-" abcd[i + 1] abcd i + 1 i 1 System.out.print("=7") System.out.print System.out System System.out "=7" String[] args args public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    }

} public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner sc = new Scanner(System.in);
        String ABCD = sc.next();
        sc.close();

        String[] strArray = ABCD.split("");
        int[] abcd = new int[4];
        int sum = 0;

        for(int i = 0; i < 4; i++) {

            abcd[i] = Integer.parseInt(strArray[i]);
            sum += abcd[i];
        }

        int[] trueUseNum = new int[3];

        for (int i=0; i<(Math.pow(2,3)); i++) {

            //負の数として使用する
            int use = 0;
            int[] useNum = new int[3];

            for (int j=0; j<3; j++) {

                if ((1&i>>j) == 1) {

                    use += abcd[j+1];
                    useNum[j] = 1;
                    } else {

                        useNum[j] = 0;
                    }

            }

            if(sum - use - use == 7) {

                trueUseNum = useNum;
                break;
            }
        }

        System.out.print(abcd[0]);

        for (int i = 0; i < 3 ;i++) {

            if(trueUseNum[i] == 0) {

                System.out.print( "+" + abcd[i + 1]);
            } else {

                System.out.print( "-" + abcd[i + 1]);
            }
        }

        System.out.print("=7");
    }

}