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)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=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();
    int A = Integer.parseInt(S.substring(0,1)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  }
} 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)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    int A = Integer.parseInt(S.substring(0,1)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  } 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 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 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 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 p1 = A+B+C+D p1 A+B+C+D C A+B+C+D A B C D p2=A+B+C-D p2 A+B+C-D A+B+C A+B+C A B C D p3=A+B-C+D p3 A+B-C+D A+B-C A+B A B C D p4=A+B-C-D p4 A+B-C-D A+B-C-D A+B A B C D p5=A-B+C+D p5 A-B+C+D A-B+C+D A-B A B C D p6=A-B+C-D p6 A-B+C-D A-B+C A-B A B C D p7=A-B-C+D p7 A-B-C+D A-B-C A-B-C A B C D p8=A-B-C-D; p8 A-B-C-D C A-B-C-D A B C D if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p1==7 p1 7 {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } System.out.println(A + "+" + B + "+" + C + "+" +D + "=7") System.out.println System.out System System.out A + "+" + B + "+" + C + "+" +D + "=7" D "+" C "+" B A + "+" + B + "+" + C + "+" +D + "=7" A "+" B "+" C "+" D "=7" if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p2==7 p2 7 {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } System.out.println(A + "+" + B + "+" + C + "-" +D + "=7") System.out.println System.out System System.out A + "+" + B + "+" + C + "-" +D + "=7" D "-" C "+" B A + "+" + B + "+" + C + "-" +D + "=7" A "+" B "+" C "-" D "=7" if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p3==7 p3 7 {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } System.out.println(A + "+" + B + "-" + C + "+" +D + "=7") System.out.println System.out System System.out A + "+" + B + "-" + C + "+" +D + "=7" D "+" C "-" B A + "+" + B + "-" + C + "+" +D + "=7" A "+" B "-" C "+" D "=7" if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p4==7 p4 7 {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } System.out.println(A + "+" + B + "-" + C + "-" +D + "=7") System.out.println System.out System System.out A + "+" + B + "-" + C + "-" +D + "=7" D "-" C "-" B A + "+" + B + "-" + C + "-" +D + "=7" A "+" B "-" C "-" D "=7" if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p5==7 p5 7 {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } System.out.println(A + "-" + B + "+" + C + "+" +D + "=7") System.out.println System.out System System.out A + "-" + B + "+" + C + "+" +D + "=7" D "+" C "+" B A + "-" + B + "+" + C + "+" +D + "=7" A "-" B "+" C "+" D "=7" if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p6==7 p6 7 {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } System.out.println(A + "-" + B + "+" + C + "-" +D + "=7") System.out.println System.out System System.out A + "-" + B + "+" + C + "-" +D + "=7" D "-" C "+" B A + "-" + B + "+" + C + "-" +D + "=7" A "-" B "+" C "-" D "=7" if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } p7==7 p7 7 {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } System.out.println(A + "-" + B + "-" + C + "+" +D + "=7") System.out.println System.out System System.out A + "-" + B + "-" + C + "+" +D + "=7" D "+" C "-" B A + "-" + B + "-" + C + "+" +D + "=7" A "-" B "-" C "+" D "=7" {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    } System.out.println(A + "-" + B + "-" + C + "-" +D + "=7") System.out.println System.out System System.out A + "-" + B + "-" + C + "-" +D + "=7" D "-" C "-" B A + "-" + B + "-" + C + "-" +D + "=7" A "-" B "-" C "-" D "=7" 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)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  }
} 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)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  }
} 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)), B = Integer.parseInt(S.substring(1,2)),
    C = Integer.parseInt(S.substring(2,3)), D = Integer.parseInt(S.substring(3,4));
    int p1 = A+B+C+D, p2=A+B+C-D, p3=A+B-C+D, p4=A+B-C-D,
    p5=A-B+C+D, p6=A-B+C-D, p7=A-B-C+D, p8=A-B-C-D;
    
    if(p1==7) {
      System.out.println(A + "+" + B + "+" + C + "+" +D + "=7");
    } else if(p2==7) {
      System.out.println(A + "+" + B + "+" + C + "-" +D + "=7");
    } else if(p3==7) {
      System.out.println(A + "+" + B + "-" + C + "+" +D + "=7");
    } else if(p4==7) {
      System.out.println(A + "+" + B + "-" + C + "-" +D + "=7");
    } else if(p5==7) {
      System.out.println(A + "-" + B + "+" + C + "+" +D + "=7");
    } else if(p6==7) {
      System.out.println(A + "-" + B + "+" + C + "-" +D + "=7");
    } else if(p7==7) {
      System.out.println(A + "-" + B + "-" + C + "+" +D + "=7");
    } else {
      System.out.println(A + "-" + B + "-" + C + "-" +D + "=7");
    }
  }
}