import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = (N % 1000) / 100;
    int C = (N % 100) / 10;
    int D = N % 10;
    String op[] = {"+", "+", "+"};
    if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    }
    System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7");
  }
} import java.util.*; util.* java class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = (N % 1000) / 100;
    int C = (N % 100) / 10;
    int D = N % 10;
    String op[] = {"+", "+", "+"};
    if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    }
    System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7");
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = (N % 1000) / 100;
    int C = (N % 100) / 10;
    int D = N % 10;
    String op[] = {"+", "+", "+"};
    if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    }
    System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7");
  } main {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = (N % 1000) / 100;
    int C = (N % 100) / 10;
    int D = N % 10;
    String op[] = {"+", "+", "+"};
    if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    }
    System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7");
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc int A = N / 1000; A N / 1000 N 1000 int B = (N % 1000) / 100; B (N % 1000) / 100 (N % 1000) N 1000 100 int C = (N % 100) / 10; C (N % 100) / 10 (N % 100) N 100 10 int D = N % 10; D N % 10 N 10 String op[] = {"+", "+", "+"}; op {"+", "+", "+"} "+" "+" "+" if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    } A + B + C + D != 7 A + B + C + D C A + B + C + D A B C D 7 {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    } if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      } A + B + C - D == 7 A + B + C - D A + B + C A + B + C A B C D 7 {
        op[2] = "-";
      } op[2] = "-" op[2] op 2 "-" if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      } A + B - C + D == 7 A + B - C + D A + B - C A + B A B C D 7 {
        op[1] = "-";
      } op[1] = "-" op[1] op 1 "-" if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      } A + B - C - D == 7 A + B - C - D A + B - C - D A + B A B C D 7 {
        op[1] = "-";
        op[2] = "-";
      } op[1] = "-" op[1] op 1 "-" op[2] = "-" op[2] op 2 "-" {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      } op[0] = "-" op[0] op 0 "-" if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        } A - B + C + D != 7 A - B + C + D A - B + C + D A - B A B C D 7 {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        } if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          } A - B + C - D == 7 A - B + C - D A - B + C A - B A B C D 7 {
            op[2] = "-";
          } op[2] = "-" op[2] op 2 "-" if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          } A - B - C + D == 7 A - B - C + D A - B - C A - B - C A B C D 7 {
            op[1] = "-";
          } op[1] = "-" op[1] op 1 "-" {
            op[1] = "-";
            op[2] = "-";
          } op[1] = "-" op[1] op 1 "-" op[2] = "-" op[2] op 2 "-" System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7") System.out.println System.out System System.out A + op[0] + B + op[1] + C + op[2] + D + "=7" D op[2] C op[1] B A + op[0] + B + op[1] + C + op[2] + D + "=7" A op[0] op 0 B op[1] op 1 C op[2] op 2 D "=7" String[] args args
import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = (N % 1000) / 100;
    int C = (N % 100) / 10;
    int D = N % 10;
    String op[] = {"+", "+", "+"};
    if (A + B + C + D != 7) {
      if (A + B + C - D == 7) {
        op[2] = "-";
      } else if (A + B - C + D == 7) {
        op[1] = "-";
      } else if (A + B - C - D == 7) {
        op[1] = "-";
        op[2] = "-";
      } else {
        op[0] = "-";
        if (A - B + C + D != 7) {
          if (A - B + C - D == 7) {
            op[2] = "-";
          } else if (A - B - C + D == 7) {
            op[1] = "-";
          } else {
            op[1] = "-";
            op[2] = "-";
          }
        }
      }
    }
    System.out.println(A + op[0] + B + op[1] + C + op[2] + D + "=7");
  }
}
