import java.util.*;

public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  }
} import java.util.*; util.* java public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=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 "" ops={"+","+","+"}; ops {"+","+","+"} "+" "+" "+" int[] n=new int[4]; n new int[4] 4 int sum=0; sum 0 for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
      n[i]=Integer.parseInt(s[i]);
      
    } {
      n[i]=Integer.parseInt(s[i]);
      
    } n[i]=Integer.parseInt(s[i]) n[i] n i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]+n[1]+n[2]+n[3]==7 n[0]+n[1]+n[2]+n[3] n[2] n[0]+n[1]+n[2]+n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7") System.out.println System.out System System.out s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7" s[3] "+" s[2] "+" s[1] s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7" s[0] s 0 "+" s[1] s 1 "+" s[2] s 2 "+" s[3] s 3 "=7" if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]+n[1]+n[2]-n[3]==7 n[0]+n[1]+n[2]-n[3] n[0]+n[1]+n[2] n[0]+n[1]+n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    } System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7") System.out.println System.out System System.out s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7" s[3] "-" s[2] "+" s[1] s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7" s[0] s 0 "+" s[1] s 1 "+" s[2] s 2 "-" s[3] s 3 "=7" if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]+n[1]-n[2]+n[3]==7 n[0]+n[1]-n[2]+n[3] n[0]+n[1]-n[2] n[0]+n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    } System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7") System.out.println System.out System System.out s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7" s[3] "+" s[2] "-" s[1] s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7" s[0] s 0 "+" s[1] s 1 "-" s[2] s 2 "+" s[3] s 3 "=7" if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]+n[1]-n[2]-n[3]==7 n[0]+n[1]-n[2]-n[3] n[0]+n[1]-n[2]-n[3] n[0]+n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    } System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7") System.out.println System.out System System.out s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7" s[3] "-" s[2] "-" s[1] s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7" s[0] s 0 "+" s[1] s 1 "-" s[2] s 2 "-" s[3] s 3 "=7" if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]-n[1]-n[2]-n[3]==7 n[0]-n[1]-n[2]-n[3] n[2] n[0]-n[1]-n[2]-n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    } System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7") System.out.println System.out System System.out s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7" s[3] "-" s[2] "-" s[1] s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7" s[0] s 0 "-" s[1] s 1 "-" s[2] s 2 "-" s[3] s 3 "=7" if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]-n[1]-n[2]+n[3]==7 n[0]-n[1]-n[2]+n[3] n[0]-n[1]-n[2] n[0]-n[1]-n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    } System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7") System.out.println System.out System System.out s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7" s[3] "+" s[2] "-" s[1] s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7" s[0] s 0 "-" s[1] s 1 "-" s[2] s 2 "+" s[3] s 3 "=7" if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } n[0]-n[1]+n[2]-n[3]==7 n[0]-n[1]+n[2]-n[3] n[0]-n[1]+n[2] n[0]-n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    } System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7") System.out.println System.out System System.out s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7" s[3] "-" s[2] "+" s[1] s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7" s[0] s 0 "-" s[1] s 1 "+" s[2] s 2 "-" s[3] s 3 "=7" {
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    } System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7") System.out.println System.out System System.out s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7" s[3] "+" s[2] "+" s[1] s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7" s[0] s 0 "-" s[1] s 1 "+" s[2] s 2 "+" s[3] s 3 "=7" String[] args args public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  }
} public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  }
} Main
import java.util.*;

public class Main{
	
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String[] s=sc.next().split(""),ops={"+","+","+"};
  	int[] n=new int[4];
    int sum=0;
    for(int i=0;i<4;i++){
      n[i]=Integer.parseInt(s[i]);
      
    }
    if(n[0]+n[1]+n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]+n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"+"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"-"+s[3]+"=7");
    }else if(n[0]-n[1]-n[2]+n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"-"+s[2]+"+"+s[3]+"=7");
    }else if(n[0]-n[1]+n[2]-n[3]==7){
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"-"+s[3]+"=7");
    }else{
      System.out.println(s[0]+"-"+s[1]+"+"+s[2]+"+"+s[3]+"=7");
    }
  }
}
