import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  }
} import java.util.*; util.* java public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  } main {
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int abcd = sc.nextInt(); abcd sc.nextInt() sc.nextInt sc int a = abcd/1000; a abcd/1000 abcd 1000 abcd -= a*1000 abcd a*1000 a 1000 int b = abcd/100; b abcd/100 abcd 100 abcd -= b*100 abcd b*100 b 100 int c = abcd/10; c abcd/10 abcd 10 int d = abcd - c*10; d abcd - c*10 abcd c*10 c 10 int i=0 i 0 j=0 j 0 k=0; k 0 System.out.print(a) System.out.print System.out System System.out a if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    } i==0 i 0 {
      System.out.print("+");
    } System.out.print("+") System.out.print System.out System System.out "+" {
      System.out.print("-");
    } System.out.print("-") System.out.print System.out System System.out "-" System.out.print(b) System.out.print System.out System System.out b if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    } j==0 j 0 {
      System.out.print("+");
    } System.out.print("+") System.out.print System.out System System.out "+" {
      System.out.print("-");
    } System.out.print("-") System.out.print System.out System System.out "-" System.out.print(c) System.out.print System.out System System.out c if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    } k==0 k 0 {
      System.out.print("+");
    } System.out.print("+") System.out.print System.out System System.out "+" {
      System.out.print("-");
    } System.out.print("-") System.out.print System.out System System.out "-" System.out.println(d+"=7") System.out.println System.out System System.out d+"=7" d "=7" String[] args args public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  }
} public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  }
} Main
import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int abcd = sc.nextInt();
    int a = abcd/1000;
    abcd -= a*1000;
    int b = abcd/100;
    abcd -= b*100;
    int c = abcd/10;
    int d = abcd - c*10;
    int i=0,j=0,k=0;
    ui:for(i = 0;i<2;i++){
      for(j = 0;j<2;j++){
        for(k = 0;k<2;k++){
          int bl = b;
          if(i==1){
            bl*=-1;
          }
          int cl = c;
          if(j==1){
            cl*=-1;
          }
          int dl = d;
          if(k==1){
            dl*=-1;
          }
          if(a+bl+cl+dl==7){
            break ui;
          }
        }
      }
    }
    System.out.print(a);
    if(i==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(b);
    if(j==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.print(c);
    if(k==0){
      System.out.print("+");
    }else{
      System.out.print("-");
    }
    System.out.println(d+"=7");
  }
}
