import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int[] li = new int[s.length]; li new int[s.length] s.length s s.length for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
            li[i] = Character.getNumericValue(s[i]);
        } {
            li[i] = Character.getNumericValue(s[i]);
        } li[i] = Character.getNumericValue(s[i]) li[i] li i Character.getNumericValue(s[i]) Character.getNumericValue Character s[i] s i for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        } {
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        } int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1]; tmp1 i == 0 ? li[0] + li[1] : li[0] - li[1] i == 0 i 0 li[0] + li[1] li[0] li 0 li[1] li 1 li[0] - li[1] li[0] li 0 li[1] li 1 for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            } {
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            } int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2]; tmp2 j == 0 ? tmp1 + li[2] : tmp1 - li[2] j == 0 j 0 tmp1 + li[2] tmp1 li[2] li 2 tmp1 - li[2] tmp1 li[2] li 2 for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                } {
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                } int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3]; chk k == 0 ? tmp2 + li[3] : tmp2 - li[3] k == 0 k 0 tmp2 + li[3] tmp2 li[3] li 3 tmp2 - li[3] tmp2 li[3] li 3 if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    } chk == 7 chk 7 {
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    } String op1 = i == 0 ? "+" : "-"; op1 i == 0 ? "+" : "-" i == 0 i 0 "+" "-" String op2 = j == 0 ? "+" : "-"; op2 j == 0 ? "+" : "-" j == 0 j 0 "+" "-" String op3 = k == 0 ? "+" : "-"; op3 k == 0 ? "+" : "-" k == 0 k 0 "+" "-" System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7") System.out.println System.out System System.out li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7" li[3] op3 li[2] op2 li[1] li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7" li[0] li 0 op1 li[1] li 1 op2 li[2] li 2 op3 li[3] li 3 "=7" return; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[s.length];
        for(int i = 0; i < s.length; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        for(int i = 0; i < 2; i++){
            int tmp1 = i == 0 ? li[0] + li[1] : li[0] - li[1];
            for(int j = 0; j < 2; j++){
                int tmp2 = j == 0 ? tmp1 + li[2] : tmp1 - li[2];
                for(int k = 0; k < 2; k++){
                    int chk = k == 0 ? tmp2 + li[3] : tmp2 - li[3];
                    if(chk == 7){
                        String op1 = i == 0 ? "+" : "-";
                        String op2 = j == 0 ? "+" : "-";
                        String op3 = k == 0 ? "+" : "-";
                        System.out.println(li[0] + op1 + li[1] + op2 + li[2] + op3 + li[3] +  "=7");
                        return;
                    }
                }
            }
        }
    }
}
