import java.util.*;

public class Main {
    static int n;
    static int m;
    static char[] c;
    static String[] pm = {"+", "-"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    }
    static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
}
 import java.util.*; util.* java public class Main {
    static int n;
    static int m;
    static char[] c;
    static String[] pm = {"+", "-"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    }
    static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} Main static int n; n static int m; m static char[] c; c static String[] pm = {"+", "-"}; pm {"+", "-"} "+" "-" public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    } main {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) c = sc.next().toCharArray() c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc boolean ok = false; ok false String op1 = "+"; op1 "+" String op2 = "+"; op2 "+" String op3 = "+"; op3 "+" for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        } {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        } int r1 = 0; r1 0 op1  = pm[i] op1 pm[i] pm i r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1])) r1 calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1])) calc op1 Character.getNumericValue(c[0]) Character.getNumericValue Character c[0] c 0 Character.getNumericValue(c[1]) Character.getNumericValue Character c[1] c 1 for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            } {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            } op2  = pm[j] op2 pm[j] pm j int r2 = calc(op2, r1, Character.getNumericValue(c[2])); r2 calc(op2, r1, Character.getNumericValue(c[2])) calc op2 r1 Character.getNumericValue(c[2]) Character.getNumericValue Character c[2] c 2 for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                } {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                } op3  = pm[k] op3 pm[k] pm k int r3 = calc(op3, r2, Character.getNumericValue(c[3])); r3 calc(op3, r2, Character.getNumericValue(c[3])) calc op3 r2 Character.getNumericValue(c[3]) Character.getNumericValue Character c[3] c 3 if (r3 == 7) {
                        ok = true;
                        break;
                    } r3 == 7 r3 7 {
                        ok = true;
                        break;
                    } ok = true ok true break; if (ok) break; ok break; if (ok) break; ok break; System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7") System.out.println System.out System System.out c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7" c[3] op3 c[2] op2 c[1] c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7" c[0] c 0 op1 c[1] c 1 op2 c[2] c 2 op3 c[3] c 3 "=7" String[] args args static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    } calc {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    } if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        } "+".equals(op) "+".equals "+" op {
            return a + b;
        } return a + b; a + b a b {
            return a - b;
        } return a - b; a - b a b String op op int a a int b b public class Main {
    static int n;
    static int m;
    static char[] c;
    static String[] pm = {"+", "-"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    }
    static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} public class Main {
    static int n;
    static int m;
    static char[] c;
    static String[] pm = {"+", "-"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    }
    static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} Main
import java.util.*;

public class Main {
    static int n;
    static int m;
    static char[] c;
    static String[] pm = {"+", "-"};

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        c = sc.next().toCharArray();

        boolean ok = false;
        String op1 = "+";
        String op2 = "+";
        String op3 = "+";

        for (int i = 0; i < 2; i++) {
            int r1 = 0;
            op1  = pm[i];
            r1 = calc(op1, Character.getNumericValue(c[0]), Character.getNumericValue(c[1]));
            for (int j = 0; j < 2; j++) {
                op2  = pm[j];
                int r2 = calc(op2, r1, Character.getNumericValue(c[2]));
                for (int k = 0; k < 2; k++) {
                    op3  = pm[k];
                    int r3 = calc(op3, r2, Character.getNumericValue(c[3]));
                    if (r3 == 7) {
                        ok = true;
                        break;
                    }
                }
                if (ok) break;
            }
            if (ok) break;
        }
        System.out.println(c[0]+op1+c[1]+op2+c[2]+op3+c[3]+"=7");
    }
    static int calc (String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
}

