import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  }
} 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();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    } int i = 0; int i = 0; i 0 i < (1 << S.length() - 1) i (1 << S.length() - 1) 1 S.length() - 1 S.length() S.length S 1 i++ i++ i {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    } {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    } int total = 0; total 0 StringBuilder A = new StringBuilder(); A new StringBuilder() A.append(S.charAt(0)) A.append A S.charAt(0) S.charAt S 0 for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      } int j = 0; int j = 0; j 0 j < S.length() - 1 j S.length() - 1 S.length() S.length S 1 j++ j++ j {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      } {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      } if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        } (1 & (i >> j)) == 1 (1 & (i >> j)) 1 (i >> j) i j 1 {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } int X = Character.getNumericValue(S.charAt(j + 1)); X Character.getNumericValue(S.charAt(j + 1)) Character.getNumericValue Character S.charAt(j + 1) S.charAt S j + 1 j 1 total += X total X A.append("+") A.append A "+" {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        } int X = Character.getNumericValue(S.charAt(j + 1)); X Character.getNumericValue(S.charAt(j + 1)) Character.getNumericValue Character S.charAt(j + 1) S.charAt S j + 1 j 1 total -= X total X A.append("-") A.append A "-" A.append(S.charAt(j + 1)) A.append A S.charAt(j + 1) S.charAt S j + 1 j 1 int Y = Character.getNumericValue(S.charAt(0)); Y Character.getNumericValue(S.charAt(0)) Character.getNumericValue Character S.charAt(0) S.charAt S 0 if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      } total + Y == 7 total + Y total Y 7 {
        System.out.println(A + "=7");
        break;
      } System.out.println(A + "=7") System.out.println System.out System System.out A + "=7" A "=7" break; String[] args args public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  }
} public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  }
} Main
import java.util.Scanner;

public class Main {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    for (int i = 0; i < (1 << S.length() - 1); i++) {
      int total = 0;
      StringBuilder A = new StringBuilder();
      A.append(S.charAt(0));
      for (int j = 0; j < S.length() - 1; j++) {
        if ((1 & (i >> j)) == 1) {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total += X;
          A.append("+");
        } else {
          int X = Character.getNumericValue(S.charAt(j + 1));
          total -= X;
          A.append("-");
        }
        A.append(S.charAt(j + 1));
      }
      // System.out.println(A);
      int Y = Character.getNumericValue(S.charAt(0));
      //System.out.println(total + Y);
      if (total + Y == 7) {
        System.out.println(A + "=7");
        break;
      }
    }
  }
}
