import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    }
} Main public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    } main {
        Main main = new Main();
        main.solve();
    } Main main = new Main(); main new Main() main.solve() main.solve main String[] args args public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    } solve {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    } Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) String S = scan.next(); S scan.next() scan.next scan char[] data = S.toCharArray(); data S.toCharArray() S.toCharArray S int[] digits = new int[4]; digits new int[4] 4 for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            digits[i] = data[i] - '0';
        } {
            digits[i] = data[i] - '0';
        } digits[i] = data[i] - '0' digits[i] digits i data[i] - '0' data[i] data i '0' int i = 0; i 0 int j = 0; j 0 int k = 0; k 0 boolean found = false; found false for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        } i = 0; i = 0 i 0 i <= 1 i 1 i++ i++ i {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        } {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        } for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            } j = 0; j = 0 j 0 j <= 1 j 1 j++ j++ j {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            } {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            } for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                } k = 0; k = 0 k 0 k <= 1 k 1 k++ k++ k {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                } {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                } int answer = digits[0]; answer digits[0] digits 0 answer += (i == 0 ? 1 : -1) * digits[1] answer (i == 0 ? 1 : -1) * digits[1] (i == 0 ? 1 : -1) i == 0 i 0 1 -1 1 digits[1] digits 1 answer += (j == 0 ? 1 : -1) * digits[2] answer (j == 0 ? 1 : -1) * digits[2] (j == 0 ? 1 : -1) j == 0 j 0 1 -1 1 digits[2] digits 2 answer += (k == 0 ? 1 : -1) * digits[3] answer (k == 0 ? 1 : -1) * digits[3] (k == 0 ? 1 : -1) k == 0 k 0 1 -1 1 digits[3] digits 3 if (answer == 7) {
                        found = true;
                        break;
                    } answer == 7 answer 7 {
                        found = true;
                        break;
                    } found = true found true break; if (found) {
                    break;
                } found {
                    break;
                } break; if (found) {
                break;
            } found {
                break;
            } break; StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(digits[0]) sb.append sb digits[0] digits 0 sb.append(i == 0 ? '+' : '-') sb.append sb i == 0 ? '+' : '-' i == 0 i 0 '+' '-' sb.append(digits[1]) sb.append sb digits[1] digits 1 sb.append(j == 0 ? '+' : '-') sb.append sb j == 0 ? '+' : '-' j == 0 j 0 '+' '-' sb.append(digits[2]) sb.append sb digits[2] digits 2 sb.append(k == 0 ? '+' : '-') sb.append sb k == 0 ? '+' : '-' k == 0 k 0 '+' '-' sb.append(digits[3]) sb.append sb digits[3] digits 3 sb.append("=7") sb.append sb "=7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    }
} public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Main main = new Main();
        main.solve();
    }
    public void solve() {
        Scanner scan = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
        String S = scan.next();
        char[] data = S.toCharArray();
        int[] digits = new int[4];
        for (int i = 0; i < 4; i++) {
            digits[i] = data[i] - '0';
        }
        int i = 0;
        int j = 0;
        int k = 0;
        boolean found = false;
        for (i = 0; i <= 1; i++) {
            for (j = 0; j <= 1; j++) {
                for (k = 0; k <= 1; k++) {
                    int answer = digits[0];
                    answer += (i == 0 ? 1 : -1) * digits[1];
                    answer += (j == 0 ? 1 : -1) * digits[2];
                    answer += (k == 0 ? 1 : -1) * digits[3];
                    if (answer == 7) {
                        found = true;
                        break;
                    }
                }
                if (found) {
                    break;
                }
            }
            if (found) {
                break;
            }
        }
        StringBuilder sb = new StringBuilder();
        sb.append(digits[0]);
        sb.append(i == 0 ? '+' : '-');
        sb.append(digits[1]);
        sb.append(j == 0 ? '+' : '-');
        sb.append(digits[2]);
        sb.append(k == 0 ? '+' : '-');
        sb.append(digits[3]);
        sb.append("=7");
        System.out.println(sb.toString());
    }
}
