import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int A = Character.getNumericValue(s.charAt(0));
        int B = Character.getNumericValue(s.charAt(1));
        int C = Character.getNumericValue(s.charAt(2));
        int D = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];

        loop:
        for(int i = 0; i < 2; i++){
            for(int j = 0; j < 2; j++){
                for(int k = 0; k < 2; k++){
                    int sum = A;
                    if(i == 0) { sum += B; op[0] = "+"; }
                    else { sum -= B; op[0] = "-"; }
                    
                    if(j == 0){ sum += C; op[1] = "+"; }
                    else { sum -= C; op[1] = "-"; }
                    
                    if(k == 0){ sum += D; op[2] = "+"; }
                    else { sum -= D; op[2] = "-"; }
                    
                    if(sum == 7) break loop;
                }
                
            }
           
        }
        System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7");
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int A = Character.getNumericValue(s.charAt(0));
        int B = Character.getNumericValue(s.charAt(1));
        int C = Character.getNumericValue(s.charAt(2));
        int D = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];

        loop:
        for(int i = 0; i < 2; i++){
            for(int j = 0; j < 2; j++){
                for(int k = 0; k < 2; k++){
                    int sum = A;
                    if(i == 0) { sum += B; op[0] = "+"; }
                    else { sum -= B; op[0] = "-"; }
                    
                    if(j == 0){ sum += C; op[1] = "+"; }
                    else { sum -= C; op[1] = "-"; }
                    
                    if(k == 0){ sum += D; op[2] = "+"; }
                    else { sum -= D; op[2] = "-"; }
                    
                    if(sum == 7) break loop;
                }
                
            }
           
        }
        System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int A = Character.getNumericValue(s.charAt(0));
        int B = Character.getNumericValue(s.charAt(1));
        int C = Character.getNumericValue(s.charAt(2));
        int D = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];

        loop:
        for(int i = 0; i < 2; i++){
            for(int j = 0; j < 2; j++){
                for(int k = 0; k < 2; k++){
                    int sum = A;
                    if(i == 0) { sum += B; op[0] = "+"; }
                    else { sum -= B; op[0] = "-"; }
                    
                    if(j == 0){ sum += C; op[1] = "+"; }
                    else { sum -= C; op[1] = "-"; }
                    
                    if(k == 0){ sum += D; op[2] = "+"; }
                    else { sum -= D; op[2] = "-"; }
                    
                    if(sum == 7) break loop;
                }
                
            }
           
        }
        System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int A = Character.getNumericValue(s.charAt(0));
        int B = Character.getNumericValue(s.charAt(1));
        int C = Character.getNumericValue(s.charAt(2));
        int D = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];

        loop:
        for(int i = 0; i < 2; i++){
            for(int j = 0; j < 2; j++){
                for(int k = 0; k < 2; k++){
                    int sum = A;
                    if(i == 0) { sum += B; op[0] = "+"; }
                    else { sum -= B; op[0] = "-"; }
                    
                    if(j == 0){ sum += C; op[1] = "+"; }
                    else { sum -= C; op[1] = "-"; }
                    
                    if(k == 0){ sum += D; op[2] = "+"; }
                    else { sum -= D; op[2] = "-"; }
                    
                    if(sum == 7) break loop;
                }
                
            }
           
        }
        System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int A = Character.getNumericValue(s.charAt(0)); A Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 int B = Character.getNumericValue(s.charAt(1)); B Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 int C = Character.getNumericValue(s.charAt(2)); C Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 int D = Character.getNumericValue(s.charAt(3)); D Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 String[] op = new String[3]; op new String[3] 3 System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7") System.out.println System.out System System.out A+op[0]+B+op[1]+C+op[2]+D+"=7" D op[2] C op[1] B A+op[0]+B+op[1]+C+op[2]+D+"=7" A op[0] op 0 B op[1] op 1 C op[2] op 2 D "=7" String[] args args
import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int A = Character.getNumericValue(s.charAt(0));
        int B = Character.getNumericValue(s.charAt(1));
        int C = Character.getNumericValue(s.charAt(2));
        int D = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];

        loop:
        for(int i = 0; i < 2; i++){
            for(int j = 0; j < 2; j++){
                for(int k = 0; k < 2; k++){
                    int sum = A;
                    if(i == 0) { sum += B; op[0] = "+"; }
                    else { sum -= B; op[0] = "-"; }
                    
                    if(j == 0){ sum += C; op[1] = "+"; }
                    else { sum -= C; op[1] = "-"; }
                    
                    if(k == 0){ sum += D; op[2] = "+"; }
                    else { sum -= D; op[2] = "-"; }
                    
                    if(sum == 7) break loop;
                }
                
            }
           
        }
        System.out.println(A+op[0]+B+op[1]+C+op[2]+D+"=7");
    }
}