import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    }

    static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    }

    enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    }

    static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    }

    enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc int a = Character.getNumericValue(s.charAt(0)); a Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 int b = Character.getNumericValue(s.charAt(1)); b Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 int c = Character.getNumericValue(s.charAt(2)); c Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 int d = Character.getNumericValue(s.charAt(3)); d Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 boolean solved = false; solved false for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        } OP op1 OP.values() OP.values OP {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        } {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        } for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            } OP op2 OP.values() OP.values OP {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            } {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            } for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                } OP op3 OP.values() OP.values OP {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                } {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                } int total = a; total a total = calc(total, b, op1) total calc(total, b, op1) calc total b op1 total = calc(total, c, op2) total calc(total, c, op2) calc total c op2 total = calc(total, d, op3) total calc(total, d, op3) calc total d op3 if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    } !solved && total == 7 !solved solved total == 7 total 7 {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    } System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7") System.out.println System.out System System.out a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7" d op3.symbol c op2.symbol b a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7" a op1.symbol op1 op1.symbol b op2.symbol op2 op2.symbol c op3.symbol op3 op3.symbol d "=7" solved = true solved true String[] args args static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    } calc {
        return op == OP.PLUS ? m + n : m - n;
    } return op == OP.PLUS ? m + n : m - n; op == OP.PLUS ? m + n : m - n op == OP.PLUS op OP.PLUS OP OP.PLUS m + n m n m - n m n int m m int n n OP op op enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    } OP PLUS("+") PLUS MINUS("-") MINUS private String symbol; symbol OP(String symbol) {
            this.symbol = symbol;
        } OP {
            this.symbol = symbol;
        } this.symbol = symbol this.symbol this this.symbol symbol String symbol symbol import java.util.Scanner;

publ import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
 public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    }

    static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    }

    enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    }

    static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    }

    enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));

        boolean solved = false;
        for (OP op1 : OP.values()) {
            for (OP op2 : OP.values()) {
                for (OP op3 : OP.values()) {
                    int total = a;
                    total = calc(total, b, op1);
                    total = calc(total, c, op2);
                    total = calc(total, d, op3);
                    if (!solved && total == 7) {
                        System.out.println(a + op1.symbol + b + op2.symbol + c + op3.symbol + d + "=7");
                        solved = true;
                    }
                }
            }
        }
    }

    static int calc(int m, int n, OP op) {
        return op == OP.PLUS ? m + n : m - n;
    }

    enum OP {
        PLUS("+"),
        MINUS("-");

        private String symbol;
        OP(String symbol) {
            this.symbol = symbol;
        }
    }
}