import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    }
}
 import java.io.OutputStream; OutputStream java.io import java.io.IOException; IOException java.io import java.io.InputStream; InputStream java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    }
} Main public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } main {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    } InputStream inputStream = System.in; inputStream System.in System System.in OutputStream outputStream = System.out; outputStream System.out System System.out Scanner in = new Scanner(inputStream); in new Scanner(inputStream) PrintWriter out = new PrintWriter(outputStream); out new PrintWriter(outputStream) TaskC solver = new TaskC(); solver new TaskC() solver.solve(1, in, out) solver.solve solver 1 in out out.close() out.close out String[] args args static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    } TaskC public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        } solve {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        } String str = in.next(); str in.next() in.next in int a = Character.getNumericValue(str.charAt(0)); a Character.getNumericValue(str.charAt(0)) Character.getNumericValue Character str.charAt(0) str.charAt str 0 int b = Character.getNumericValue(str.charAt(1)); b Character.getNumericValue(str.charAt(1)) Character.getNumericValue Character str.charAt(1) str.charAt str 1 int c = Character.getNumericValue(str.charAt(2)); c Character.getNumericValue(str.charAt(2)) Character.getNumericValue Character str.charAt(2) str.charAt str 2 int d = Character.getNumericValue(str.charAt(3)); d Character.getNumericValue(str.charAt(3)) Character.getNumericValue Character str.charAt(3) str.charAt str 3 String op1 op1 op2 op2 op3; op3 for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            } {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            } for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                } {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                } for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    } {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    } int ans = 0; ans 0 if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        } i % 2 == 1 i % 2 i 2 1 {
                            ans += (a + b);
                            op1 = "+";
                        } ans += (a + b) ans (a + b) a b op1 = "+" op1 "+" {
                            ans += (a - b);
                            op1 = "-";
                        } ans += (a - b) ans (a - b) a b op1 = "-" op1 "-" if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        } j % 2 == 1 j % 2 j 2 1 {
                            ans += c;
                            op2 = "+";
                        } ans += c ans c op2 = "+" op2 "+" {
                            ans -= c;
                            op2 = "-";
                        } ans -= c ans c op2 = "-" op2 "-" if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        } k % 2 == 1 k % 2 k 2 1 {
                            ans += d;
                            op3 = "+";
                        } ans += d ans d op3 = "+" op3 "+" {
                            ans -= d;
                            op3 = "-";
                        } ans -= d ans d op3 = "-" op3 "-" if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        } ans == 7 ans 7 {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        } out.print(a + op1 + b + op2 + c + op3 + d + "=7") out.print 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" return; int testNumber testNumber Scanner in in PrintWriter out out public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    }
} public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    }
} Main
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskC solver = new TaskC();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskC {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            String str = in.next();
            int a = Character.getNumericValue(str.charAt(0));
            int b = Character.getNumericValue(str.charAt(1));
            int c = Character.getNumericValue(str.charAt(2));
            int d = Character.getNumericValue(str.charAt(3));
            String op1, op2, op3;


            for (int i = 0; i < 2; i++) {
                for (int j = 0; j < 2; j++) {
                    for (int k = 0; k < 2; k++) {
                        int ans = 0;
                        if (i % 2 == 1) {
                            ans += (a + b);
                            op1 = "+";
                        } else {
                            ans += (a - b);
                            op1 = "-";
                        }

                        if (j % 2 == 1) {
                            ans += c;
                            op2 = "+";
                        } else {
                            ans -= c;
                            op2 = "-";
                        }

                        if (k % 2 == 1) {
                            ans += d;
                            op3 = "+";
                        } else {
                            ans -= d;
                            op3 = "-";
                        }

                        if (ans == 7) {
                            out.print(a + op1 + b + op2 + c + op3 + d + "=7");
                            return;
                        }
                    }
                }
            }


        }

    }
}

