import java.util.*;
import static java.lang.System.*;

class Main {
  public static final int MOD = 1000000007;
  public static final int INF = 1000000000;
  public static void main(String[] args) {
    Scanner sc = new Scanner(in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = N % 1000 / 100;
    int C = N % 100 / 10;
    int D = N % 10;
    boolean check = true;
    for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    }
      
  }

  public static int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a%b);
  }
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; class Main {
  public static final int MOD = 1000000007;
  public static final int INF = 1000000000;
  public static void main(String[] args) {
    Scanner sc = new Scanner(in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = N % 1000 / 100;
    int C = N % 100 / 10;
    int D = N % 10;
    boolean check = true;
    for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    }
      
  }

  public static int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a%b);
  }
} Main public static final int MOD = 1000000007; MOD 1000000007 public static final int INF = 1000000000; INF 1000000000 public static void main(String[] args) {
    Scanner sc = new Scanner(in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = N % 1000 / 100;
    int C = N % 100 / 10;
    int D = N % 10;
    boolean check = true;
    for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    }
      
  } main {
    Scanner sc = new Scanner(in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = N % 1000 / 100;
    int C = N % 100 / 10;
    int D = N % 10;
    boolean check = true;
    for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    }
      
  } Scanner sc = new Scanner(in); sc new Scanner(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 boolean check = true; check true for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    } int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    } {
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    } if(check == false) break; check == false check false break; for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      } int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      } {
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      } if(check == false) break; check == false check false break; for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        } int k=0; int k=0; k 0 k<2 k 2 k++ k++ k {
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        } {
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        } int tmp; tmp if(i == 0) tmp = A+B;
          else tmp = A-B; i == 0 i 0 tmp = A+B tmp A+B A B tmp = A-B tmp A-B A B if(j == 0) tmp += C;
          else tmp -= C; j == 0 j 0 tmp += C tmp C tmp -= C tmp C if(k == 0) tmp += D;
          else tmp -= D; k == 0 k 0 tmp += D tmp D tmp -= D tmp D if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          } tmp == 7 tmp 7 {
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          } String op1 op1 op2 op2 op3; op3 if(i == 0) op1 = "+";
            else op1 = "-"; i == 0 i 0 op1 = "+" op1 "+" op1 = "-" op1 "-" if(j == 0) op2 = "+";
            else op2 = "-"; j == 0 j 0 op2 = "+" op2 "+" op2 = "-" op2 "-" if(k == 0) op3 = "+";
            else op3 = "-"; k == 0 k 0 op3 = "+" op3 "+" op3 = "-" op3 "-" out.println(A + op1 + B + op2 + C + op3 + D + "=7") out.println out A + op1 + B + op2 + C + op3 + D + "=7" D op3 C op2 B A + op1 + B + op2 + C + op3 + D + "=7" A op1 B op2 C op3 D "=7" check = false check false break; String[] args args public static int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a%b);
  } gcd {
    if(b == 0) return a;
    return gcd(b, a%b);
  } if(b == 0) return a; b == 0 b 0 return a; a return gcd(b, a%b); gcd(b, a%b) gcd b a%b a b int a a int b b
import java.util.*;
import static java.lang.System.*;

class Main {
  public static final int MOD = 1000000007;
  public static final int INF = 1000000000;
  public static void main(String[] args) {
    Scanner sc = new Scanner(in);
    int N = sc.nextInt();
    int A = N / 1000;
    int B = N % 1000 / 100;
    int C = N % 100 / 10;
    int D = N % 10;
    boolean check = true;
    for(int i=0; i<2; i++){
      if(check == false) break;
      for(int j=0; j<2; j++){
        if(check == false) break;
        for(int k=0; k<2; k++){
          int tmp;
          if(i == 0) tmp = A+B;
          else tmp = A-B;
          if(j == 0) tmp += C;
          else tmp -= C;
          if(k == 0) tmp += D;
          else tmp -= D;
          if(tmp == 7){
            String op1, op2, op3;
            if(i == 0) op1 = "+";
            else op1 = "-";
            if(j == 0) op2 = "+";
            else op2 = "-";
            if(k == 0) op3 = "+";
            else op3 = "-";
            out.println(A + op1 + B + op2 + C + op3 + D + "=7");
            check = false;
            break;
          }
        }
      }
    }
      
  }

  public static int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a%b);
  }
}