import java.util.*;
 
class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int S = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか   
    int k = 0;
    int X = S; //Sの桁数を求めるパート
    while (X > 0){
      k++;
      X /= 10;
    }                  
    int[] A = new int[4]; //Sの各桁を配列に入れる
    if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    }
    
    for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    }     
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int S = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか   
    int k = 0;
    int X = S; //Sの桁数を求めるパート
    while (X > 0){
      k++;
      X /= 10;
    }                  
    int[] A = new int[4]; //Sの各桁を配列に入れる
    if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    }
    
    for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    }     
  }
} Main public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int S = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか   
    int k = 0;
    int X = S; //Sの桁数を求めるパート
    while (X > 0){
      k++;
      X /= 10;
    }                  
    int[] A = new int[4]; //Sの各桁を配列に入れる
    if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    }
    
    for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    }     
  } main {
	Scanner scanner = new Scanner(System.in);
    
    int S = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか   
    int k = 0;
    int X = S; //Sの桁数を求めるパート
    while (X > 0){
      k++;
      X /= 10;
    }                  
    int[] A = new int[4]; //Sの各桁を配列に入れる
    if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    }
    
    for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    }     
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int S = scanner.nextInt(); S scanner.nextInt() scanner.nextInt scanner int k = 0; k 0 int X = S; X S while (X > 0){
      k++;
      X /= 10;
    } X > 0 X 0 {
      k++;
      X /= 10;
    } k++ k X /= 10 X 10 int[] A = new int[4]; A new int[4] 4 if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    } k == 3 k 3 {
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    } A[3] = 0 A[3] A 3 0 for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	} int i = 0; int i = 0; i 0 i < A.length-1 i A.length-1 A.length A A.length 1 i++ i++ i {
        A[i] = S % 10;
        S /= 10;
    	} {
        A[i] = S % 10;
        S /= 10;
    	} A[i] = S % 10 A[i] A i S % 10 S 10 S /= 10 S 10 {
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    } for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    } int i = 0; int i = 0; i 0 i < A.length i A.length A A.length i++ i++ i {
      A[i] = S % 10;
      S /= 10;
    } {
      A[i] = S % 10;
      S /= 10;
    } A[i] = S % 10 A[i] A i S % 10 S 10 S /= 10 S 10 for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    } int bit = 0; int bit = 0; bit 0 bit < (1<<(A.length-1)) bit (1<<(A.length-1)) 1 (A.length-1) A.length A A.length 1 bit++ bit++ bit {      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    } {      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    } int ans = 0; ans 0 int[] B = new int[3]; B new int[3] 3 for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       } int j = 0; int j = 0; j 0 j < A.length-1 j A.length-1 A.length A A.length 1 j++ j++ j {
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       } {
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       } if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        } (bit & (1 << j)) == 0 (bit & (1 << j)) bit (1 << j) 1 j 0 {
          ans += A[j];
          B[j] = 0;
        } ans += A[j] ans A[j] A j B[j] = 0 B[j] B j 0 {
          ans -= A[j];
          B[j] = 1;
        } ans -= A[j] ans A[j] A j B[j] = 1 B[j] B j 1 ans += A[3] ans A[3] A 3 if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      } ans == 7 ans 7 {       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      } System.out.print(A[3]) System.out.print System.out System System.out A[3] A 3 for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        } int h = 0; int h = 0; h 0 h < 3 h 3 h++ h++ h {
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        } {
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        } if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          } B[2-h]==0 B[2-h] B 2-h 2 h 0 {
          	System.out.print("+");
          } System.out.print("+") System.out.print System.out System System.out "+" {
            System.out.print("-");
          } System.out.print("-") System.out.print System.out System System.out "-" System.out.print(A[2-h]) System.out.print System.out System System.out A[2-h] A 2-h 2 h System.out.println("=7") System.out.println System.out System System.out "=7" break; String[] args args
import java.util.*;
 
class Main {
  public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
    
    int S = scanner.nextInt(); //next(文字列), nextDouble, nextLine(1行)とか   
    int k = 0;
    int X = S; //Sの桁数を求めるパート
    while (X > 0){
      k++;
      X /= 10;
    }                  
    int[] A = new int[4]; //Sの各桁を配列に入れる
    if (k == 3){
      A[3] = 0;
        for (int i = 0; i < A.length-1; i++){
        A[i] = S % 10;
        S /= 10;
    	}
    }else{
    for (int i = 0; i < A.length; i++){
      A[i] = S % 10;
      S /= 10;
    }
    }
    
    for (int bit = 0; bit < (1<<(A.length-1));bit++){      
      int ans = 0;
      int[] B = new int[3];
      for (int j = 0; j < A.length-1; j++){
        if ((bit & (1 << j)) == 0){
          ans += A[j];
          B[j] = 0;
        }else{
          ans -= A[j];
          B[j] = 1;
        }     
       }
       ans += A[3];
       if (ans == 7){       
        System.out.print(A[3]);
        for (int h = 0; h < 3; h++){
          if (B[2-h]==0){
          	System.out.print("+");
          }else{
            System.out.print("-");
          }
          System.out.print(A[2-h]);
        }
        System.out.println("=7");
        break;
      }
    }     
  }
}
