import java.io.*;
public class Main{
  public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  }
  public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  }
}
     import java.io.*; io.* java public class Main{
  public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  }
  public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  }
} Main public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  } main {
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  } try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){} catch(IOException e){} IOException e {} {
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); bf new BufferedReader(new InputStreamReader(System.in)) int[] a = new int[4]; a new int[4] 4 String s = bf.readLine(); s bf.readLine() bf.readLine bf for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i); int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i a[i] = charToInt(s, i); a[i] = charToInt(s, i) a[i] a i charToInt(s, i) charToInt s i for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      } {
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      } int ans = a[0]; ans a[0] a 0 for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        } {
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        } int k = i>>j; k i>>j i j if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1]; k%2 == 1 k%2 k 2 1 ans += a[j+1] ans a[j+1] a j+1 j 1 ans -= a[j+1] ans a[j+1] a j+1 j 1 if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        } ans == 7 ans 7 {
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        } for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          } {
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          } System.out.print(a[j]) System.out.print System.out System System.out a[j] a j System.out.print((i>>j)%2 == 1 ? "+" : "-") System.out.print System.out System System.out (i>>j)%2 == 1 ? "+" : "-" (i>>j)%2 == 1 (i>>j)%2 (i>>j) i j 2 1 "+" "-" System.out.println(a[3]+"=7") System.out.println System.out System System.out a[3]+"=7" a[3] a 3 "=7" return; String[] args args public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  } charToInt {
  	return Character.getNumericValue(s.charAt(k));
  } return Character.getNumericValue(s.charAt(k)); Character.getNumericValue(s.charAt(k)) Character.getNumericValue Character s.charAt(k) s.charAt s k String s s int k k public class Main{
  public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  }
  public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  }
} public class Main{
  public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  }
  public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  }
} Main
import java.io.*;
public class Main{
  public static void main(String[] args){
    try{
      BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
	  int[] a = new int[4];
      String s = bf.readLine();
	  for(int i = 0; i < 4; i++)
        a[i] = charToInt(s, i);
      for(int i = 0; i < 8; i++){
        int ans = a[0];
      	for(int j = 0; j < 3; j++){
          int k = i>>j;
          if(k%2 == 1)
            ans += a[j+1];
          else
            ans -= a[j+1];
        }
        if(ans == 7){
          for(int j = 0; j < 3; j++){
            System.out.print(a[j]);
            System.out.print((i>>j)%2 == 1 ? "+" : "-");
          }
          System.out.println(a[3]+"=7");
          return;
        }
      }
    } catch(IOException e){}
  }
  public static int charToInt(String s, int k){
  	return Character.getNumericValue(s.charAt(k));
  }
}
    