import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import java.io.PrintWriter;

@SuppressWarnings("unchecked")
public class Main {
    static final int MAX_NUM = 4;
    static final int B = 8;
     static final int TARGET = 7;

    static int[] num = new int [MAX_NUM];
    static char[] op = new char[MAX_NUM - 1];

    public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    }
} import java.io.IOException; IOException java.io import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.PrintWriter; PrintWriter java.io public class Main {
    static final int MAX_NUM = 4;
    static final int B = 8;
     static final int TARGET = 7;

    static int[] num = new int [MAX_NUM];
    static char[] op = new char[MAX_NUM - 1];

    public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    }
} Main static final int MAX_NUM = 4; MAX_NUM 4 static final int B = 8; B 8 static final int TARGET = 7; TARGET 7 static int[] num = new int [MAX_NUM]; num new int [MAX_NUM] MAX_NUM static char[] op = new char[MAX_NUM - 1]; op new char[MAX_NUM - 1] MAX_NUM - 1 MAX_NUM 1 public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    } main {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    } final String s; s try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        } {
            s = reader.readLine();
        } BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in)) new BufferedReader(
                new InputStreamReader(System.in)) s = reader.readLine() s reader.readLine() reader.readLine reader PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0'; int i = 0; int i = 0; i 0 i < s.length() i s.length() s.length s i++ i++ i num[i] = s.charAt(i) - '0'; num[i] = s.charAt(i) - '0' num[i] num i s.charAt(i) - '0' s.charAt(i) s.charAt s i '0' for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        } int i = 0; int i = 0; i 0 i < B i B i++ i++ i {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        } {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        } int tmp = num[0]; tmp num[0] num 0 for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            } int j = 0; int j = 0; j 0 j < MAX_NUM - 1 j MAX_NUM - 1 MAX_NUM 1 j++ j++ j {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            } {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            } op[j] = '+' op[j] op j '+' if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1]; (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } op[j] = '-' op[j] op j '-' tmp -= num[j + 1] tmp num[j + 1] num j + 1 j 1 tmp += num[j + 1] tmp num[j + 1] num j + 1 j 1 boolean flg = false; flg false if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            } tmp == TARGET tmp TARGET {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            } for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                } i = 0; i = 0 i 0 i < MAX_NUM i MAX_NUM i++ i++ i {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                } {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                } out.print(num[i]) out.print out num[i] num i if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    } i == MAX_NUM - 1 i MAX_NUM - 1 MAX_NUM 1 {
                        flg = true;
                        break;
                    } flg = true flg true break; out.print(op[i]) out.print out op[i] op i if (flg) break; flg break; out.println("=" + String.valueOf(TARGET)) out.println out "=" + String.valueOf(TARGET) "=" String.valueOf(TARGET) String.valueOf String TARGET out.flush() out.flush out String[] args args public class Main {
    static final int MAX_NUM = 4;
    static final int B = 8;
     static final int TARGET = 7;

    static int[] num = new int [MAX_NUM];
    static char[] op = new char[MAX_NUM - 1];

    public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    }
} public class Main {
    static final int MAX_NUM = 4;
    static final int B = 8;
     static final int TARGET = 7;

    static int[] num = new int [MAX_NUM];
    static char[] op = new char[MAX_NUM - 1];

    public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    }
} Main
import java.io.IOException;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import java.io.PrintWriter;

@SuppressWarnings("unchecked")
public class Main {
    static final int MAX_NUM = 4;
    static final int B = 8;
     static final int TARGET = 7;

    static int[] num = new int [MAX_NUM];
    static char[] op = new char[MAX_NUM - 1];

    public static void main(String[] args) throws IOException {
        final String s;

        try (
            BufferedReader reader = new BufferedReader(
                new InputStreamReader(System.in))) {
            s = reader.readLine();
        }

        PrintWriter out = new PrintWriter(System.out);

        for (int i = 0; i < s.length(); i++)
            num[i] = s.charAt(i) - '0';

        for (int i = 0; i < B; i++) {
            int tmp = num[0];

            for (int j = 0; j < MAX_NUM - 1; j++) {
                op[j] = '+';

                if ((i >> j & 1) == 1) {
                    op[j] = '-';
                    tmp -= num[j + 1];
                } else tmp += num[j + 1];
            }

            boolean flg = false;

            if (tmp == TARGET) {
                for (i = 0; i < MAX_NUM; i++) {
                    out.print(num[i]);

                    if (i == MAX_NUM - 1) {
                        flg = true;
                        break;
                    }

                    out.print(op[i]);
                }
            }

            if (flg) break;
        }

        out.println("=" + String.valueOf(TARGET));

        out.flush();
    }
}
