import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    } main {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String l = sc.next(); l sc.next() sc.next sc String[] sp = l.split(""); sp l.split("") l.split l "" int[] n = new int[4]; n new int[4] 4 for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            n[i] = Integer.parseInt(sp[i]);
        } {
            n[i] = Integer.parseInt(sp[i]);
        } n[i] = Integer.parseInt(sp[i]) n[i] n i Integer.parseInt(sp[i]) Integer.parseInt Integer sp[i] sp i String[] op = new String[3]; op new String[3] 3 int ans = n[0]; ans n[0] n 0 for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        } int i=0; int i=0; i 0 i<8 i 8 i++ i++ i {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        } {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        } ans = n[0] ans n[0] n 0 for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            } {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            } if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                } (1 & i >> j) == 1 (1 & i >> j) 1 i >> j i j 1 {
                    ans += n[j+1];
                    op[j] = "+";
                } ans += n[j+1] ans n[j+1] n j+1 j 1 op[j] = "+" op[j] op j "+" {
                    ans -= n[j+1];
                    op[j] = "-";
                } ans -= n[j+1] ans n[j+1] n j+1 j 1 op[j] = "-" op[j] op j "-" if(ans == 7) {
                break;
            } ans == 7 ans 7 {
                break;
            } break; System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7") System.out.println System.out System System.out n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7" n[3] op[2] n[2] op[1] n[1] n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7" n[0] n 0 op[0] op 0 n[1] n 1 op[1] op 1 n[2] n 2 op[2] op 2 n[3] n 3 "=7" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    }
} Main
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String l = sc.next();
        String[] sp = l.split("");
        int[] n = new int[4];
        for(int i=0; i<4; i++) {
            n[i] = Integer.parseInt(sp[i]);
        }
        String[] op = new String[3];
        int ans = n[0];
        for(int i=0; i<8; i++) {
            ans = n[0];
            for(int j=0; j<3; j++) {
                if((1 & i >> j) == 1) {
                    ans += n[j+1];
                    op[j] = "+";
                }else {
                    ans -= n[j+1];
                    op[j] = "-";
                }
            }
            if(ans == 7) {
                break;
            }
        }
        System.out.println(n[0]+op[0]+n[1]+op[1]+n[2]+op[2]+n[3]+"=7");
    }
}