import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc sc.close() sc.close sc int a = Integer.parseInt(input.substring(0, 1)); a Integer.parseInt(input.substring(0, 1)) Integer.parseInt Integer input.substring(0, 1) input.substring input 0 1 int b = Integer.parseInt(input.substring(1, 2)); b Integer.parseInt(input.substring(1, 2)) Integer.parseInt Integer input.substring(1, 2) input.substring input 1 2 int c = Integer.parseInt(input.substring(2, 3)); c Integer.parseInt(input.substring(2, 3)) Integer.parseInt Integer input.substring(2, 3) input.substring input 2 3 int d = Integer.parseInt(input.substring(3, 4)); d Integer.parseInt(input.substring(3, 4)) Integer.parseInt Integer input.substring(3, 4) input.substring input 3 4 String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}}; op {{"+", "-"}, {"+", "-"}, {"+", "-"}} {"+", "-"} "+" "-" {"+", "-"} "+" "-" {"+", "-"} "+" "-" String op1 = ""; op1 "" String op2 = ""; op2 "" String op3 = ""; op3 "" boolean ans = false; ans false for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        } {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        } op1 = op[0][i] op1 op[0][i] op[0] op 0 i int z = 0; z 0 if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            } op1.equals("+") op1.equals op1 "+" {
                z = a+b;
            } z = a+b z a+b a b {
                z = a-b;
            } z = a-b z a-b a b for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            } {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            } op2 = op[1][j] op2 op[1][j] op[1] op 1 j int y = 0; y 0 if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                } op2.equals("+") op2.equals op2 "+" {
                    y = z+c;
                } y = z+c y z+c z c {
                    y = z-c;
                } y = z-c y z-c z c for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                } {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                } op3 = op[2][k] op3 op[2][k] op[2] op 2 k int x = 0; x 0 if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    } op3.equals("+") op3.equals op3 "+" {
                        x = y+d;
                    } x = y+d x y+d y d {
                        x = y-d;
                    } x = y-d x y-d y d if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    } x == 7 x 7 {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    } System.out.println(a+op1+b+op2+c+op3+d+"=7") System.out.println System.out System System.out a+op1+b+op2+c+op3+d+"=7" d op3 c op2 b a+op1+b+op2+c+op3+d+"=7" a op1 b op2 c op3 d "=7" ans = true ans true break; if (ans) {
                    break;
                } ans {
                    break;
                } break; if (ans) {
                break;
            } ans {
                break;
            } break; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();
        int a = Integer.parseInt(input.substring(0, 1));
        int b = Integer.parseInt(input.substring(1, 2));
        int c = Integer.parseInt(input.substring(2, 3));
        int d = Integer.parseInt(input.substring(3, 4));

        String op[][] = {{"+", "-"}, {"+", "-"}, {"+", "-"}};
        String op1 = "";
        String op2 = "";
        String op3 = "";
        // 7 = a +- b +- c +- d
        boolean ans = false;
        for (int i = 0; i < 2; i++) {
            op1 = op[0][i];
            int z = 0;
            if (op1.equals("+")) {
                z = a+b;
            } else {
                z = a-b;
            }
            for (int j = 0; j < 2; j++) {
                op2 = op[1][j];
                int y = 0;
                if (op2.equals("+")) {
                    y = z+c;
                } else {
                    y = z-c;
                }
                for (int k = 0; k < 2; k++) {
                    op3 = op[2][k];
                    int x = 0;
                    if (op3.equals("+")) {
                        x = y+d;
                    } else {
                        x = y-d;
                    }
                    if (x == 7) {
                        System.out.println(a+op1+b+op2+c+op3+d+"=7");
                        ans = true;
                        break;
                    }
                }
                if (ans) {
                    break;
                }
            }
            if (ans) {
                break;
            }
        }
    }
}
