import java.util.Scanner;

public class Main {

  private static String[] results = new String[3];

  private static int[] input = new int[4];

  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  }

  public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  }

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

  private static String[] results = new String[3];

  private static int[] input = new int[4];

  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  }

  public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  }

} Main private static String[] results = new String[3]; results new String[3] 3 private static int[] input = new int[4]; input new int[4] 4 public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  } main {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String line = scanner.nextLine(); line scanner.nextLine() scanner.nextLine scanner for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    } int i = 0; int i = 0; i 0 i < line.length() i line.length() line.length line i++ i++ i {
      input[i] = Character.getNumericValue(line.charAt(i));
    } {
      input[i] = Character.getNumericValue(line.charAt(i));
    } input[i] = Character.getNumericValue(line.charAt(i)) input[i] input i Character.getNumericValue(line.charAt(i)) Character.getNumericValue Character line.charAt(i) line.charAt line i boolean flg = dfs(0,input[0]); flg dfs(0,input[0]) dfs 0 input[0] input 0 String A = Integer.toString(input[0]); A Integer.toString(input[0]) Integer.toString Integer input[0] input 0 String B = Integer.toString(input[1]); B Integer.toString(input[1]) Integer.toString Integer input[1] input 1 String C = Integer.toString(input[2]); C Integer.toString(input[2]) Integer.toString Integer input[2] input 2 String D = Integer.toString(input[3]); D Integer.toString(input[3]) Integer.toString Integer input[3] input 3 System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7") System.out.print System.out System System.out A+results[0]+B+results[1]+C+results[2]+D+"=7" D results[2] C results[1] B A+results[0]+B+results[1]+C+results[2]+D+"=7" A results[0] results 0 B results[1] results 1 C results[2] results 2 D "=7" scanner.close() scanner.close scanner String args[] args public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  } dfs {

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  } if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    } index == 3 && sum == 7 index == 3 index 3 sum == 7 sum 7 {
      return true;
    } return true; true if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    } index <=2 index 2 {

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    } results[index] = "+" results[index] results index "+" if(dfs(index+1,sum+input[index+1])){
        return true;
      } dfs(index+1,sum+input[index+1]) dfs index+1 index 1 sum+input[index+1] sum input[index+1] input index+1 index 1 {
        return true;
      } return true; true results[index] = "-" results[index] results index "-" if(dfs(index+1,sum-input[index+1])){
        return true;
      } dfs(index+1,sum-input[index+1]) dfs index+1 index 1 sum-input[index+1] sum input[index+1] input index+1 index 1 {
        return true;
      } return true; true return false; false int index index int sum sum public class Main {

  private static String[] results = new String[3];

  private static int[] input = new int[4];

  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  }

  public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  }

} public class Main {

  private static String[] results = new String[3];

  private static int[] input = new int[4];

  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  }

  public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  }

} Main
import java.util.Scanner;

public class Main {

  private static String[] results = new String[3];

  private static int[] input = new int[4];

  public static void main(String args[]) {
    Scanner scanner = new Scanner(System.in);
 
    String line = scanner.nextLine();
    

    for(int i = 0;i < line.length();i++){
      input[i] = Character.getNumericValue(line.charAt(i));
    }

    boolean flg = dfs(0,input[0]);

    String A = Integer.toString(input[0]);
    String B = Integer.toString(input[1]);
    String C = Integer.toString(input[2]);
    String D = Integer.toString(input[3]);

    // String answer = A+results[0]+B+results[1]+C+results[2]+D+"=7";

    System.out.print(A+results[0]+B+results[1]+C+results[2]+D+"=7");
    scanner.close();
  }

  public static boolean dfs(int index,int sum){

    if(index == 3 && sum == 7){
      return true;
    }else if(index <=2){

      results[index] = "+";

      if(dfs(index+1,sum+input[index+1])){
        return true;
      }
  
      results[index] = "-";

      if(dfs(index+1,sum-input[index+1])){
        return true;
      }
  
    }

    return false;
  }

}