import java.util.*;
public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          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[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      }
      
    }
} Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      }
      
    } main {
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      }
      
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] x = new int[4]; x new int[4] 4 for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
        x[i] = Character.getNumericValue(s.charAt(i));
      } {
        x[i] = Character.getNumericValue(s.charAt(i));
      } x[i] = Character.getNumericValue(s.charAt(i)) x[i] x i Character.getNumericValue(s.charAt(i)) Character.getNumericValue Character s.charAt(i) s.charAt s i for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          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 {
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      } {
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      } char[] op = new char[3]; op new char[3] 3 for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        } {
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        } if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          } (i>>j&1)==1 (i>>j&1) i>>j i j 1 1 {
            op[j]='+';
          } op[j]='+' op[j] op j '+' {
            op[j]='-';
          } op[j]='-' op[j] op j '-' int sum = x[0]; sum x[0] x 0 for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        } int k=0; int k=0; k 0 k<3 k 3 k++ k++ k {
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        } {
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        } if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          } op[k]=='+' op[k] op k '+' {
            sum+=x[k+1];
          } sum+=x[k+1] sum x[k+1] x k+1 k 1 {
            sum-=x[k+1];
          } sum-=x[k+1] sum x[k+1] x k+1 k 1 if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        } sum==7 sum 7 {
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        } for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          } int l=0; int l=0; l 0 l<3 l 3 l++ l++ l {
            System.out.print(x[l]);
            System.out.print(op[l]);
          } {
            System.out.print(x[l]);
            System.out.print(op[l]);
          } System.out.print(x[l]) System.out.print System.out System System.out x[l] x l System.out.print(op[l]) System.out.print System.out System System.out op[l] op l System.out.println(x[3]+"=7") System.out.println System.out System System.out x[3]+"=7" x[3] x 3 "=7" break; String[] args args public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      }
      
    }
} public class Main {
	public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      String s = sc.next();
      int[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          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[] x = new int[4];
      for(int i=0;i<4;i++){
        x[i] = Character.getNumericValue(s.charAt(i));
      }     
      for(int i=0;i<Math.pow(2,3);i++){
        char[] op = new char[3];
        for(int j=0;j<3;j++){
          if((i>>j&1)==1){
            op[j]='+';
          }else{
            op[j]='-';
          }
        }
        int sum = x[0];
        for(int k=0;k<3;k++){
          if(op[k]=='+'){
            sum+=x[k+1];
          }else{
            sum-=x[k+1];
          }
        }
        if(sum==7){
          for(int l=0;l<3;l++){
            System.out.print(x[l]);
            System.out.print(op[l]);
          }
          System.out.println(x[3]+"=7");
          break;
        }
      }
      
    }
}