
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  }
    


  
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  }
    


  
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int A=Integer.parseInt(S.substring(0,1)); A Integer.parseInt(S.substring(0,1)) Integer.parseInt Integer S.substring(0,1) S.substring S 0 1 int B=Integer.parseInt(S.substring(1,2)); B Integer.parseInt(S.substring(1,2)) Integer.parseInt Integer S.substring(1,2) S.substring S 1 2 int C=Integer.parseInt(S.substring(2,3)); C Integer.parseInt(S.substring(2,3)) Integer.parseInt Integer S.substring(2,3) S.substring S 2 3 int D=Integer.parseInt(S.substring(3,4)); D Integer.parseInt(S.substring(3,4)) Integer.parseInt Integer S.substring(3,4) S.substring S 3 4 int tar=7-A; tar 7-A 7 A String cA=S.substring(0,1); cA S.substring(0,1) S.substring S 0 1 String cB=S.substring(1,2); cB S.substring(1,2) S.substring S 1 2 String cC=S.substring(2,3); cC S.substring(2,3) S.substring S 2 3 String cD=S.substring(3,4); cD S.substring(3,4) S.substring S 3 4 if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } B+C+D==tar B+C+D B+C+D B C D tar {
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    } System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7") System.out.println System.out System System.out cA+"+"+cB+"+"+cC+"+"+cD+"=7" cD "+" cC "+" cB cA+"+"+cB+"+"+cC+"+"+cD+"=7" cA "+" cB "+" cC "+" cD "=7" return; if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } B+C-D==tar B+C-D B+C B C D tar {
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    } System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7") System.out.println System.out System System.out cA+"+"+cB+"+"+cC+"-"+cD+"=7" cD "-" cC "+" cB cA+"+"+cB+"+"+cC+"-"+cD+"=7" cA "+" cB "+" cC "-" cD "=7" return; if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } B-C+D==tar B-C+D B-C B C D tar {
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    } System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7") System.out.println System.out System System.out cA+"+"+cB+"-"+cC+"+"+cD+"=7" cD "+" cC "-" cB cA+"+"+cB+"-"+cC+"+"+cD+"=7" cA "+" cB "-" cC "+" cD "=7" return; if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } B-C-D==tar B-C-D B-C-D B C D tar {
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7") System.out.println System.out System System.out cA+"+"+cB+"-"+cC+"-"+cD+"=7" cD "-" cC "-" cB cA+"+"+cB+"-"+cC+"-"+cD+"=7" cA "+" cB "-" cC "-" cD "=7" return; if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } -B+C+D==tar -B+C+D -B+C+D -B B C D tar {
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    } System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7") System.out.println System.out System System.out cA+"-"+cB+"+"+cC+"+"+cD+"=7" cD "+" cC "+" cB cA+"-"+cB+"+"+cC+"+"+cD+"=7" cA "-" cB "+" cC "+" cD "=7" return; if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } -B+C-D==tar -B+C-D -B+C -B B C D tar {
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    } System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7") System.out.println System.out System System.out cA+"-"+cB+"+"+cC+"-"+cD+"=7" cD "-" cC "+" cB cA+"-"+cB+"+"+cC+"-"+cD+"=7" cA "-" cB "+" cC "-" cD "=7" return; if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } -B-C+D==tar -B-C+D -B-C -B B C D tar {
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    } System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7") System.out.println System.out System System.out cA+"-"+cB+"-"+cC+"+"+cD+"=7" cD "+" cC "-" cB cA+"-"+cB+"-"+cC+"+"+cD+"=7" cA "-" cB "-" cC "+" cD "=7" return; if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } -B-C-D==tar -B-C-D -B-C-D -B B C D tar {
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    } System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7") System.out.println System.out System System.out cA+"-"+cB+"-"+cC+"-"+cD+"=7" cD "-" cC "-" cB cA+"-"+cB+"-"+cC+"-"+cD+"=7" cA "-" cB "-" cC "-" cD "=7" return; String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  }
    


  
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  }
    


  
} Main

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A=Integer.parseInt(S.substring(0,1));
    int B=Integer.parseInt(S.substring(1,2));
    int C=Integer.parseInt(S.substring(2,3));
    int D=Integer.parseInt(S.substring(3,4));
    int tar=7-A;
    String cA=S.substring(0,1);
    String cB=S.substring(1,2);
    String cC=S.substring(2,3);
    String cD=S.substring(3,4);
    if(B+C+D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(B+C-D==tar){
      System.out.println(cA+"+"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(B-C+D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(B-C-D==tar){
      System.out.println(cA+"+"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }else if(-B+C+D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"+"+cD+"=7");
      return;
    }else if(-B+C-D==tar){
      System.out.println(cA+"-"+cB+"+"+cC+"-"+cD+"=7");
      return;
    }else if(-B-C+D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"+"+cD+"=7");
      return;
    }else if(-B-C-D==tar){
      System.out.println(cA+"-"+cB+"-"+cC+"-"+cD+"=7");
      return;
    }
    
    
    

  }
    


  
}
