import java.util.Scanner;
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    //splitを使うことでStringがそれぞれ入る。
    String S[] = sc.next().split("");
    //＋の位置の場合は２の(n-1)乗
    int n = (int)Math.pow(2,3);
    
    String[] f = new String[3];
    long total = 0;
    for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    }
    System.out.print(S[0]);
    for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    }
    System.out.print("="+7);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    //splitを使うことでStringがそれぞれ入る。
    String S[] = sc.next().split("");
    //＋の位置の場合は２の(n-1)乗
    int n = (int)Math.pow(2,3);
    
    String[] f = new String[3];
    long total = 0;
    for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    }
    System.out.print(S[0]);
    for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    }
    System.out.print("="+7);
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    //splitを使うことでStringがそれぞれ入る。
    String S[] = sc.next().split("");
    //＋の位置の場合は２の(n-1)乗
    int n = (int)Math.pow(2,3);
    
    String[] f = new String[3];
    long total = 0;
    for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    }
    System.out.print(S[0]);
    for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    }
    System.out.print("="+7);
  } main {
    Scanner sc = new Scanner(System.in);
    //splitを使うことでStringがそれぞれ入る。
    String S[] = sc.next().split("");
    //＋の位置の場合は２の(n-1)乗
    int n = (int)Math.pow(2,3);
    
    String[] f = new String[3];
    long total = 0;
    for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    }
    System.out.print(S[0]);
    for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    }
    System.out.print("="+7);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S[] = sc.next().split(""); S sc.next().split("") sc.next().split sc.next() sc.next sc "" int n = (int)Math.pow(2,3); n (int)Math.pow(2,3) Math.pow Math 2 3 String[] f = new String[3]; f new String[3] 3 long total = 0; total 0 for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    } {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    } total = Long.parseLong(S[0]) total Long.parseLong(S[0]) Long.parseLong Long S[0] S 0 for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      } {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      } if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        } (i>>j & 1) == 1 (i>>j & 1) i>>j i j 1 1 {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } total += Long.parseLong(S[j+1]) total Long.parseLong(S[j+1]) Long.parseLong Long S[j+1] S j+1 j 1 f[j] = "+" f[j] f j "+" {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        } total -= Long.parseLong(S[j+1]) total Long.parseLong(S[j+1]) Long.parseLong Long S[j+1] S j+1 j 1 f[j] = "-" f[j] f j "-" if(total == 7) break; total == 7 total 7 break; System.out.print(S[0]) System.out.print System.out System System.out S[0] S 0 for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    } int i = 0; int i = 0; i 0 i<3 i 3 i++ i++ i {
    	System.out.print(f[i]+S[i+1]); 
    } {
    	System.out.print(f[i]+S[i+1]); 
    } System.out.print(f[i]+S[i+1]) System.out.print System.out System System.out f[i]+S[i+1] f[i] f i S[i+1] S i+1 i 1 System.out.print("="+7) System.out.print System.out System System.out "="+7 "=" 7 String[] args args
import java.util.Scanner;
class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    //splitを使うことでStringがそれぞれ入る。
    String S[] = sc.next().split("");
    //＋の位置の場合は２の(n-1)乗
    int n = (int)Math.pow(2,3);
    
    String[] f = new String[3];
    long total = 0;
    for (int i = 0; i < n; i++) {
    	total = Long.parseLong(S[0]);
      for (int j = 0; j < 3; j++) {
        if ((i>>j & 1) == 1) {
            total += Long.parseLong(S[j+1]);
            f[j] = "+";
        } else {
        	
        	total -= Long.parseLong(S[j+1]);
        	f[j] = "-";	
       
        }
      }
      if(total == 7) break;
      
    }
    System.out.print(S[0]);
    for(int i = 0;i<3;i++) {
    	System.out.print(f[i]+S[i+1]); 
    }
    System.out.print("="+7);
  }
}
