import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  }
} import java.util.*; util.* java public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  }
} Main public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  } main {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc int i i j j temp; temp int[] number = new int[4]; number new int[4] 4 String[] mark = new String[3]; mark new String[3] 3 for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0'; i = 0; i = 0 i 0 i < 4 i 4 i++ i++ i number[i] = input.charAt(i) - '0'; number[i] = input.charAt(i) - '0' number[i] number i input.charAt(i) - '0' input.charAt(i) input.charAt input i '0' for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    } i = 0; i = 0 i 0 i < 2 << 3 i 2 << 3 2 3 i++ i++ i {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    } {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    } temp = number[0] temp number[0] number 0 for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      } j = 0; j = 0 j 0 j < 3 j 3 j++ j++ j {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      } {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      } if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        } (1 & i >> j) == 1 (1 & i >> j) 1 i >> j i j 1 {
          temp += number[j+1];
          mark[j] = "+";
        } temp += number[j+1] temp number[j+1] number j+1 j 1 mark[j] = "+" mark[j] mark j "+" {
          temp -= number[j+1];
          mark[j] = "-";
        } temp -= number[j+1] temp number[j+1] number j+1 j 1 mark[j] = "-" mark[j] mark j "-" if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      } temp == 7 temp 7 {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      } for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        } j = 0; j = 0 j 0 j < 3 j 3 j++ j++ j {
          System.out.print(number[j] + mark[j]);
        } {
          System.out.print(number[j] + mark[j]);
        } System.out.print(number[j] + mark[j]) System.out.print System.out System System.out number[j] + mark[j] number[j] number j mark[j] mark j System.out.println(number[j] + "=7") System.out.println System.out System System.out number[j] + "=7" number[j] number j "=7" break; String[] args args public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  }
} public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  }
} Main
import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String input = sc.next();
    int i, j, temp;
    int[] number = new int[4];
    String[] mark = new String[3];
    for(i = 0; i < 4; i++) number[i] = input.charAt(i) - '0';
    for(i = 0; i < 2 << 3; i++) {
      temp = number[0];
      for(j = 0; j < 3; j++) {
        if((1 & i >> j) == 1) {
          temp += number[j+1];
          mark[j] = "+";
        } else {
          temp -= number[j+1];
          mark[j] = "-";
        }
      }
      if(temp == 7) {
        for(j = 0; j < 3; j++) {
          System.out.print(number[j] + mark[j]);
        }
        System.out.println(number[j] + "=7");
        break;
      }
    }
  }
}
