import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  }
} Main public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  } main {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = Integer.parseInt(sc.nextLine()); N Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc int D = N % 10; D N % 10 N 10 N /= 10 N 10 int C = N % 10; C N % 10 N 10 N /= 10 N 10 int B = N % 10; B N % 10 N 10 N /= 10 N 10 int A = N % 10; A N % 10 N 10 String ans = ""; ans "" if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A+B+C+D == 7 A+B+C+D C A+B+C+D A B C D 7 {
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    } ans = A+"+"+B+"+"+C+"+"+D+"=7" ans A+"+"+B+"+"+C+"+"+D+"=7" D "+" C "+" B A+"+"+B+"+"+C+"+"+D+"=7" A "+" B "+" C "+" D "=7" if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A+B+C-D==7 A+B+C-D A+B+C A+B+C A B C D 7 {
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    } ans = A+"+"+B+"+"+C+"-"+D+"=7" ans A+"+"+B+"+"+C+"-"+D+"=7" D "-" C "+" B A+"+"+B+"+"+C+"-"+D+"=7" A "+" B "+" C "-" D "=7" if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A+B-C+D==7 A+B-C+D A+B-C A+B A B C D 7 {
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    } ans = A+"+"+B+"-"+C+"+"+D+"=7" ans A+"+"+B+"-"+C+"+"+D+"=7" D "+" C "-" B A+"+"+B+"-"+C+"+"+D+"=7" A "+" B "-" C "+" D "=7" if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A-B+C+D==7 A-B+C+D A-B+C+D A-B A B C D 7 {
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    } ans = A+"-"+B+"+"+C+"+"+D+"=7" ans A+"-"+B+"+"+C+"+"+D+"=7" D "+" C "+" B A+"-"+B+"+"+C+"+"+D+"=7" A "-" B "+" C "+" D "=7" if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A+B-C-D==7 A+B-C-D A+B-C-D A+B A B C D 7 {
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    } ans = A+"+"+B+"-"+C+"-"+D+"=7" ans A+"+"+B+"-"+C+"-"+D+"=7" D "-" C "-" B A+"+"+B+"-"+C+"-"+D+"=7" A "+" B "-" C "-" D "=7" if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A-B+C-D==7 A-B+C-D A-B+C A-B A B C D 7 {
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    } ans = A+"-"+B+"+"+C+"-"+D+"=7" ans A+"-"+B+"+"+C+"-"+D+"=7" D "-" C "+" B A+"-"+B+"+"+C+"-"+D+"=7" A "-" B "+" C "-" D "=7" if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A-B-C+D==7 A-B-C+D A-B-C A-B-C A B C D 7 {
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    } ans = A+"-"+B+"-"+C+"+"+D+"=7" ans A+"-"+B+"-"+C+"+"+D+"=7" D "+" C "-" B A+"-"+B+"-"+C+"+"+D+"=7" A "-" B "-" C "+" D "=7" if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } A-B-C-D==7 A-B-C-D C A-B-C-D A B C D 7 {
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    } ans = A+"-"+B+"-"+C+"-"+D+"=7" ans A+"-"+B+"-"+C+"-"+D+"=7" D "-" C "-" B A+"-"+B+"-"+C+"-"+D+"=7" A "-" B "-" C "-" D "=7" System.out.println(ans) System.out.println System.out System System.out ans String[]args args public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  }
} public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  }
} Main
import java.util.*;

public class Main{
  public static void main(String[]args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.nextLine());
    int D = N % 10;
    N /= 10;
    int C = N % 10;
    N /= 10;
    int B = N % 10;
    N /= 10;
    int A = N % 10;
    
    String ans = "";
    if(A+B+C+D == 7){
      ans = A+"+"+B+"+"+C+"+"+D+"=7";
    }else if(A+B+C-D==7){
      ans = A+"+"+B+"+"+C+"-"+D+"=7";
    }else if(A+B-C+D==7){
      ans = A+"+"+B+"-"+C+"+"+D+"=7";
    }else if(A-B+C+D==7){
      ans = A+"-"+B+"+"+C+"+"+D+"=7";
    }else if(A+B-C-D==7){
      ans = A+"+"+B+"-"+C+"-"+D+"=7";
    }else if(A-B+C-D==7){
      ans = A+"-"+B+"+"+C+"-"+D+"=7";
    }else if(A-B-C+D==7){
      ans = A+"-"+B+"-"+C+"+"+D+"=7";
    }else if(A-B-C-D==7){
      ans = A+"-"+B+"-"+C+"-"+D+"=7";
    }
    System.out.println(ans);
  }
}