import java.util.*;

public class Main{
	public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    }

} import java.util.*; util.* java public class Main{
	public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    }

} Main public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    } main {
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int a = N / 1000; a N / 1000 N 1000 int b = N / 100 - 10 * a; b N / 100 - 10 * a N / 100 N 100 10 * a 10 a int c = N / 10 - 100 * a - 10 * b; c N / 10 - 100 * a - 10 * b N / 10 - 100 * a - 10 * b N / 10 N 10 100 * a 100 a 10 * b 10 b int d = N % 10; d N % 10 N 10 if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a + b + c + d == 7 a + b + c + d c a + b + c + d a b c d 7 {
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        } System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7") System.out.print System.out System System.out a + "+" + b + "+" + c  + "+"  + d + "=7" d "+" c "+" b a + "+" + b + "+" + c  + "+"  + d + "=7" a "+" b "+" c "+" d "=7" if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a + b + c - d == 7 a + b + c - d a + b + c a + b + c a b c d 7 {
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        } System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7") System.out.print System.out System System.out a + "+" + b + "+" + c  + "-"  + d + "=7" d "-" c "+" b a + "+" + b + "+" + c  + "-"  + d + "=7" a "+" b "+" c "-" d "=7" if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a + b - c + d == 7 a + b - c + d a + b - c a + b a b c d 7 {
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        } System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7") System.out.print System.out System System.out a + "+" + b + "-" + c  + "+"  + d + "=7" d "+" c "-" b a + "+" + b + "-" + c  + "+"  + d + "=7" a "+" b "-" c "+" d "=7" if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a + b - c - d == 7 a + b - c - d a + b - c - d a + b a b c d 7 {
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        } System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7") System.out.print System.out System System.out a + "+" + b + "-" + c  + "-"  + d + "=7" d "-" c "-" b a + "+" + b + "-" + c  + "-"  + d + "=7" a "+" b "-" c "-" d "=7" if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a - b - c + d == 7 a - b - c + d a - b - c a - b - c a b c d 7 {
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        } System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7") System.out.print System.out System System.out a + "-" + b + "-" + c  + "+"  + d + "=7" d "+" c "-" b a + "-" + b + "-" + c  + "+"  + d + "=7" a "-" b "-" c "+" d "=7" if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a - b - c - d == 7 a - b - c - d c a - b - c - d a b c d 7 {
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        } System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7") System.out.print System.out System System.out a + "-" + b + "-" + c  + "-"  + d + "=7" d "-" c "-" b a + "-" + b + "-" + c  + "-"  + d + "=7" a "-" b "-" c "-" d "=7" if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a - b + c + d == 7 a - b + c + d a - b + c + d a - b a b c d 7 {
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        } System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7") System.out.print System.out System System.out a + "-" + b + "+" + c  + "+"  + d + "=7" d "+" c "+" b a + "-" + b + "+" + c  + "+"  + d + "=7" a "-" b "+" c "+" d "=7" if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } a - b + c - d == 7 a - b + c - d a - b + c a - b a b c d 7 {
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        } System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7") System.out.print System.out System System.out a + "-" + b + "+" + c  + "-"  + d + "=7" d "-" c "+" b a + "-" + b + "+" + c  + "-"  + d + "=7" a "-" b "+" c "-" d "=7" String[] args args public class Main{
	public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    }

} public class Main{
	public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    }

} Main
import java.util.*;

public class Main{
	public  static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	int N = scan.nextInt();
      	int a = N / 1000;
      	int b = N / 100 - 10 * a;
      	int c = N / 10 - 100 * a - 10 * b;
      	int d = N % 10;
      	if(a + b + c + d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a + b + c - d == 7){
         	System.out.print(a + "+" + b + "+" + c  + "-"  + d + "=7"); 
        }else if(a + b - c + d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a + b - c - d == 7){
         	System.out.print(a + "+" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b - c + d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "+"  + d + "=7"); 
        }else if(a - b - c - d == 7){
         	System.out.print(a + "-" + b + "-" + c  + "-"  + d + "=7"); 
        }else if(a - b + c + d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "+"  + d + "=7"); 
        }else if(a - b + c - d == 7){
         	System.out.print(a + "-" + b + "+" + c  + "-"  + d + "=7"); 
        }
    
    }

}