import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	}
} 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();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	}
} Main public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	} main {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc String []ss = s.split(""); ss s.split("") s.split s "" int a = Integer.parseInt(ss[0]); a Integer.parseInt(ss[0]) Integer.parseInt Integer ss[0] ss 0 int b = Integer.parseInt(ss[1]); b Integer.parseInt(ss[1]) Integer.parseInt Integer ss[1] ss 1 int c = Integer.parseInt(ss[2]); c Integer.parseInt(ss[2]) Integer.parseInt Integer ss[2] ss 2 int d = Integer.parseInt(ss[3]); d Integer.parseInt(ss[3]) Integer.parseInt Integer ss[3] ss 3 String op1 =""; op1 "" String op2 =""; op2 "" String op3 =""; op3 "" if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a+b+c+d ==7 a+b+c+d c a+b+c+d a b c d 7 {
    	op1 ="+"; op2 ="+"; op3 ="+";
     } op1 ="+" op1 "+" op2 ="+" op2 "+" op3 ="+" op3 "+" if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a+b-c+d ==7 a+b-c+d a+b-c a+b a b c d 7 {
      	op1 ="+"; op2 ="-"; op3 ="+";
       } op1 ="+" op1 "+" op2 ="-" op2 "-" op3 ="+" op3 "+" if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a+b-c-d ==7 a+b-c-d a+b-c-d a+b a b c d 7 {
       	op1 ="+"; op2 ="-"; op3 ="-";
        } op1 ="+" op1 "+" op2 ="-" op2 "-" op3 ="-" op3 "-" if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a+b+c-d ==7 a+b+c-d a+b+c a+b+c a b c d 7 {
        	op1 ="+"; op2 ="+"; op3 ="-";
         } op1 ="+" op1 "+" op2 ="+" op2 "+" op3 ="-" op3 "-" if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a-b+c+d ==7 a-b+c+d a-b+c+d a-b a b c d 7 {
     	op1 ="-"; op2 ="+"; op3 ="+";
      } op1 ="-" op1 "-" op2 ="+" op2 "+" op3 ="+" op3 "+" if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a-b+c-d ==7 a-b+c-d a-b+c a-b a b c d 7 {
      	op1 ="-"; op2 ="+"; op3 ="-";
       } op1 ="-" op1 "-" op2 ="+" op2 "+" op3 ="-" op3 "-" if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } a-b-c+d ==7 a-b-c+d a-b-c a-b-c a b c d 7 {
      	op1 ="-"; op2 ="-"; op3 ="+";
       } op1 ="-" op1 "-" op2 ="-" op2 "-" op3 ="+" op3 "+" System.out.println((a+op1+b+op2+c+op3+d+"=7")) System.out.println System.out System System.out (a+op1+b+op2+c+op3+d+"=7") d op3 c op2 b a+op1+b+op2+c+op3+d+"=7" a op1 b op2 c op3 d "=7" String[] args args public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	}
} public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
	Scanner sc = new Scanner(System.in);
     String s = sc.next();
     sc.close();
     String []ss = s.split("");
     
     int a = Integer.parseInt(ss[0]);
     int b = Integer.parseInt(ss[1]);
     int c = Integer.parseInt(ss[2]);
     int d = Integer.parseInt(ss[3]);
     String op1 ="";
     String op2 ="";
     String op3 ="";
      
     if(a+b+c+d ==7) {
    	op1 ="+"; op2 ="+"; op3 ="+";
     }
     else if(a+b-c+d ==7) {
      	op1 ="+"; op2 ="-"; op3 ="+";
       }
     else if(a+b-c-d ==7) {
       	op1 ="+"; op2 ="-"; op3 ="-";
        }
     else if(a+b+c-d ==7) {
        	op1 ="+"; op2 ="+"; op3 ="-";
         }
     else if(a-b+c+d ==7) {
     	op1 ="-"; op2 ="+"; op3 ="+";
      }
     else if(a-b+c-d ==7) {
      	op1 ="-"; op2 ="+"; op3 ="-";
       }
     
     else if(a-b-c+d ==7) {
      	op1 ="-"; op2 ="-"; op3 ="+";
       }
     
    System.out.println((a+op1+b+op2+c+op3+d+"=7"));  
	}
}
