import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        final String S = sc.next();
        sc.close();
        final int A = Integer.parseInt(S.substring(0, 1));
        final int B = Integer.parseInt(S.substring(1, 2));
        final int C = Integer.parseInt(S.substring(2, 3));
        final int D = Integer.parseInt(S.substring(3, 4));

        for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        }
    }
} import java.util.*; util.* java class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        final String S = sc.next();
        sc.close();
        final int A = Integer.parseInt(S.substring(0, 1));
        final int B = Integer.parseInt(S.substring(1, 2));
        final int C = Integer.parseInt(S.substring(2, 3));
        final int D = Integer.parseInt(S.substring(3, 4));

        for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        final String S = sc.next();
        sc.close();
        final int A = Integer.parseInt(S.substring(0, 1));
        final int B = Integer.parseInt(S.substring(1, 2));
        final int C = Integer.parseInt(S.substring(2, 3));
        final int D = Integer.parseInt(S.substring(3, 4));

        for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        final String S = sc.next();
        sc.close();
        final int A = Integer.parseInt(S.substring(0, 1));
        final int B = Integer.parseInt(S.substring(1, 2));
        final int C = Integer.parseInt(S.substring(2, 3));
        final int D = Integer.parseInt(S.substring(3, 4));

        for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final String S = sc.next(); S sc.next() sc.next sc sc.close() sc.close sc final int A = Integer.parseInt(S.substring(0, 1)); A Integer.parseInt(S.substring(0, 1)) Integer.parseInt Integer S.substring(0, 1) S.substring S 0 1 final int B = Integer.parseInt(S.substring(1, 2)); B Integer.parseInt(S.substring(1, 2)) Integer.parseInt Integer S.substring(1, 2) S.substring S 1 2 final int C = Integer.parseInt(S.substring(2, 3)); C Integer.parseInt(S.substring(2, 3)) Integer.parseInt Integer S.substring(2, 3) S.substring S 2 3 final int D = Integer.parseInt(S.substring(3, 4)); D Integer.parseInt(S.substring(3, 4)) Integer.parseInt Integer S.substring(3, 4) S.substring S 3 4 for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            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 sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        } {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        } for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            } int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            } {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            } for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                } int k=0; int k=0; k 0 k<2 k 2 k++ k++ k {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                } {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                } int sum = A; sum A StringBuilder sb = new StringBuilder(A + "+2+3+4=7"); sb new StringBuilder(A + "+2+3+4=7") if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        } i==0 i 0 {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } sum += B sum B sb.replace(1, 3, "+" + B) sb.replace sb 1 3 "+" + B "+" B {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        } sum -= B sum B sb.replace(1, 3, "-" + B) sb.replace sb 1 3 "-" + B "-" B if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        } j==0 j 0 {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } sum += C sum C sb.replace(3, 5, "+" + C) sb.replace sb 3 5 "+" + C "+" C {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        } sum -= C sum C sb.replace(3, 5, "-" + C) sb.replace sb 3 5 "-" + C "-" C if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        } k==0 k 0 {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } sum += D sum D sb.replace(5, 7, "+" + D) sb.replace sb 5 7 "+" + D "+" D {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        } sum -= D sum D sb.replace(5, 7, "-" + D) sb.replace sb 5 7 "-" + D "-" D if (sum==7) {
                            System.out.println(sb);
                            return;
                        } sum==7 sum 7 {
                            System.out.println(sb);
                            return;
                        } System.out.println(sb) System.out.println System.out System System.out sb return; String[] args args
import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        final String S = sc.next();
        sc.close();
        final int A = Integer.parseInt(S.substring(0, 1));
        final int B = Integer.parseInt(S.substring(1, 2));
        final int C = Integer.parseInt(S.substring(2, 3));
        final int D = Integer.parseInt(S.substring(3, 4));

        for (int i=0; i<2; i++) {
            for (int j=0; j<2; j++) {
                    for (int k=0; k<2; k++) {
                        int sum = A;
                        StringBuilder sb = new StringBuilder(A + "+2+3+4=7");
                        if (i==0) {
                            sum += B;
                            sb.replace(1, 3, "+" + B);
                        } else {
                            sum -= B;
                            sb.replace(1, 3, "-" + B);
                        }
                        if (j==0) {
                            sum += C;
                            sb.replace(3, 5, "+" + C);
                        } else {
                            sum -= C;
                            sb.replace(3, 5, "-" + C);
                        }
                        if (k==0) {
                            sum += D;
                            sb.replace(5, 7, "+" + D);
                        } else {
                            sum -= D;
                            sb.replace(5, 7, "-" + D);
                        }
                        if (sum==7) {
                            System.out.println(sb);
                            return;
                        }
                }
            }
        }
    }
}