import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  }
} import java.util.Scanner; Scanner java.util public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  }
} Main public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  } main {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = Character.getNumericValue(s.charAt(0)); a Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 int b = Character.getNumericValue(s.charAt(1)); b Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 int c = Character.getNumericValue(s.charAt(2)); c Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 int d = Character.getNumericValue(s.charAt(3)); d Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 char[] op = { '+', '-' }; op { '+', '-' } '+' '-' for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    } {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    } for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      } {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      } for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        } {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        } int tmp = a; tmp a if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          } i == 0 i 0 {
            tmp += b;
          } tmp += b tmp b {
            tmp -= b;
          } tmp -= b tmp b if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          } j == 0 j 0 {
            tmp += c;
          } tmp += c 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;
          } tmp -= d tmp d if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          } tmp == 7 tmp 7 {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          } System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7) System.out.println System.out System System.out a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7 '=' d "" op[k] "" c "" op[j] "" b "" op[i] a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7 a "" op[i] op i "" b "" op[j] op j "" c "" op[k] op k "" d '=' 7 return; String[] args args public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  }
} public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

    Scanner sc = new Scanner(System.in);
    String s = sc.next();
    int a = Character.getNumericValue(s.charAt(0));
    int b = Character.getNumericValue(s.charAt(1));
    int c = Character.getNumericValue(s.charAt(2));
    int d = Character.getNumericValue(s.charAt(3));
    char[] op = { '+', '-' };
    for (int i = 0; i < 2; i++) {
      for (int j = 0; j < 2; j++) {
        for (int k = 0; k < 2; k++) {
          int tmp = a;
          if (i == 0) {
            tmp += b;
          } else {
            tmp -= b;
          }
          if (j == 0) {
            tmp += c;
          } else {
            tmp -= c;
          }
          if (k == 0) {
            tmp += d;
          } else {
            tmp -= d;
          }
          if (tmp == 7) {
            System.out.println(a + "" + op[i] + "" + b + "" + op[j] + "" + c + "" + op[k] + "" + d + '=' + 7);
            return;
          }
        }
      }
    }

  }
}