import java.util.*;
import java.text.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    DecimalFormat df = new DecimalFormat("000");

    int[] ret = new int[3];

    char[] arr;

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    }

    void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    }


} import java.util.*; util.* java import java.text.*; text.* java public class Main {

    Scanner sc = new Scanner(System.in);

    DecimalFormat df = new DecimalFormat("000");

    int[] ret = new int[3];

    char[] arr;

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    }

    void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    }


} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) DecimalFormat df = new DecimalFormat("000"); df new DecimalFormat("000") int[] ret = new int[3]; ret new int[3] 3 char[] arr; arr public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    } run {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    } arr = sc.next().toCharArray() arr sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int cnt = (int)Math.pow(2, 3); cnt (int)Math.pow(2, 3) Math.pow Math 2 3 String[] s = new String[cnt]; s new String[cnt] cnt for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        } int i=0; int i=0; i 0 i<cnt i cnt i++ i++ i {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        } {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        } s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0") s[i] s i String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0") String.format("%3s", Integer.toBinaryString(i)).replace String.format("%3s", Integer.toBinaryString(i)) String.format String "%3s" Integer.toBinaryString(i) Integer.toBinaryString Integer i " " "0" dfs("") dfs "" StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(arr[0]) sb.append sb arr[0] arr 0 for (int i=0; i<3; i++) {

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        } {

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        } sb.append(ret[i] == '0' ? "+" : "-") sb.append sb ret[i] == '0' ? "+" : "-" ret[i] == '0' ret[i] ret i '0' "+" "-" sb.append(arr[i+1]) sb.append sb arr[i+1] arr i+1 i 1 sb.append("=") sb.append sb "=" sb.append("7") sb.append sb "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    } dfs {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    } if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        } s.length() == 3 s.length() s.length s 3 {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } int sum = arr[0] - '0'; sum arr[0] - '0' arr[0] arr 0 '0' for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            } int i=0; int i=0; i 0 i<s.length() i s.length() s.length s i++ i++ i {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            } {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            } if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                } s.charAt(i) == '0' s.charAt(i) s.charAt s i '0' {
                    sum += (arr[i+1] - '0');
                } sum += (arr[i+1] - '0') sum (arr[i+1] - '0') arr[i+1] arr i+1 i 1 '0' {
                    sum -= (arr[i+1] - '0');
                } sum -= (arr[i+1] - '0') sum (arr[i+1] - '0') arr[i+1] arr i+1 i 1 '0' if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            } sum == 7 sum 7 {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            } for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
                    ret[i] = s.charAt(i);
                } {
                    ret[i] = s.charAt(i);
                } ret[i] = s.charAt(i) ret[i] ret i s.charAt(i) s.charAt s i {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        } for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            } int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
                dfs(s + String.valueOf(i));
            } {
                dfs(s + String.valueOf(i));
            } dfs(s + String.valueOf(i)) dfs s + String.valueOf(i) s String.valueOf(i) String.valueOf String i String s s public class Main {

    Scanner sc = new Scanner(System.in);

    DecimalFormat df = new DecimalFormat("000");

    int[] ret = new int[3];

    char[] arr;

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    }

    void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    }


} public class Main {

    Scanner sc = new Scanner(System.in);

    DecimalFormat df = new DecimalFormat("000");

    int[] ret = new int[3];

    char[] arr;

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    }

    void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    }


} Main
import java.util.*;
import java.text.*;

public class Main {

    Scanner sc = new Scanner(System.in);

    DecimalFormat df = new DecimalFormat("000");

    int[] ret = new int[3];

    char[] arr;

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        arr = sc.next().toCharArray();

//        System.out.println(arr[0]);

        int cnt = (int)Math.pow(2, 3);

        String[] s = new String[cnt];
        for (int i=0; i<cnt; i++) {
            s[i] = String.format("%3s", Integer.toBinaryString(i)).replace(" ", "0");
        }

//        System.out.println(s[5]);

        dfs("");

        StringBuilder sb = new StringBuilder();
        sb.append(arr[0]);

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

            sb.append(ret[i] == '0' ? "+" : "-");
            sb.append(arr[i+1]);
        }
        sb.append("=");
        sb.append("7");
        System.out.println(sb.toString());

    }

    void dfs(String s) {
        if (s.length() == 3) {
            int sum = arr[0] - '0';
            for (int i=0; i<s.length(); i++) {
                if (s.charAt(i) == '0') {
                    sum += (arr[i+1] - '0');
                } else {
                    sum -= (arr[i+1] - '0');
                }
            }
//            System.out.println(sum);
//            System.out.println(s);
            if (sum == 7) {
//                System.out.println("yes");
                for (int i=0; i<3; i++) {
                    ret[i] = s.charAt(i);
                }
            }
        } else {
            for (int i=0; i<2; i++) {
                dfs(s + String.valueOf(i));
            }
        }

    }


}
