import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    } main {
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] a = new int[4]; a new int[4] 4 for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
        a[i] = Character.getNumericValue(s.charAt(i));
      } {
        a[i] = Character.getNumericValue(s.charAt(i));
      } a[i] = Character.getNumericValue(s.charAt(i)) a[i] a i Character.getNumericValue(s.charAt(i)) Character.getNumericValue Character s.charAt(i) s.charAt s i char[] op = new char[3]; op new char[3] 3 for(int i=0;i<3;i++){
        op[i] = '+';
      } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
        op[i] = '+';
      } {
        op[i] = '+';
      } op[i] = '+' op[i] op i '+' for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      } int i=0; int i=0; i 0 i<(Math.pow(2,3)) i (Math.pow(2,3)) Math.pow Math 2 3 i++ i++ i {
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      } {
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      } for(int p=0;p<3;p++){
           op[p] = '+';
        } int p=0; int p=0; p 0 p<3 p 3 p++ p++ p {
           op[p] = '+';
        } {
           op[p] = '+';
        } op[p] = '+' op[p] op p '+' String bin = Integer.toBinaryString(i); bin Integer.toBinaryString(i) Integer.toBinaryString Integer i int num = Integer.parseInt(bin); num Integer.parseInt(bin) Integer.parseInt Integer bin for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        } {
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        } if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          } (1&i>>j)==1 (1&i>>j) 1 i>>j i j 1 {
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          } op[j]='-' op[j] op j '-' for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        } int l=0; int l=0; l 0 l<4 l 4 l++ l++ l {
          //System.out.print(op[l]);
        } {
          //System.out.print(op[l]);
        } int sum=a[0]; sum a[0] a 0 for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      } int m=0; int m=0; m 0 m<3 m 3 m++ m++ m {
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      } {
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      } if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        } op[m]=='+' op[m] op m '+' {
          sum+=a[m+1];
        } sum+=a[m+1] sum a[m+1] a m+1 m 1 {
          sum-=a[m+1];
        } sum-=a[m+1] sum a[m+1] a m+1 m 1 if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        } sum==7 sum 7 {
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        } for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          } int n=0; int n=0; n 0 n<3 n 3 n++ n++ n {
            System.out.print(a[n]);
            System.out.print(op[n]);         
          } {
            System.out.print(a[n]);
            System.out.print(op[n]);         
          } System.out.print(a[n]) System.out.print System.out System System.out a[n] a n System.out.print(op[n]) System.out.print System.out System System.out op[n] op n System.out.println(a[3]+"="+sum) System.out.println System.out System System.out a[3]+"="+sum a[3]+"="+sum a[3] a 3 "=" sum break; String[] args args public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    }
} public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    }
} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
	  String s = sc.next(); 
      int[] a = new int[4];
      for(int i=0;i<4;i++){
        a[i] = Character.getNumericValue(s.charAt(i));
      }
      char[] op = new char[3];
      for(int i=0;i<3;i++){
        op[i] = '+';
      }
      for(int i=0;i<(Math.pow(2,3));i++){
        for(int p=0;p<3;p++){
           op[p] = '+';
        }
        String bin = Integer.toBinaryString(i);
        int num = Integer.parseInt(bin);
        //System.out.println(String.format("%04d",num));
        for(int j=0;j<3;j++){
          //int n = 1&(i>>j);
          //System.out.println(j+"桁目を見ると"+n);
          if((1&i>>j)==1){
            //System.out.println(j+"桁目のopを変えるよ");
            op[j]='-';
          }
        }
        for(int l=0;l<4;l++){
          //System.out.print(op[l]);
        }
        //System.out.println();
      int sum=a[0];
      for(int m=0;m<3;m++){
        //System.out.print(op[m]);
        //System.out.print(a[m]);
        if(op[m]=='+'){
          sum+=a[m+1];
        }else{
          sum-=a[m+1];
        }
      }
        if(sum==7){
          for(int n=0;n<3;n++){
            System.out.print(a[n]);
            System.out.print(op[n]);         
          }
          System.out.println(a[3]+"="+sum);
          break;
        }
      }
			
    }
}