import java.util.*;
import java.lang.Math;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	}
} import java.util.*; util.* java import java.lang.Math; Math java.lang public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	} main {
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int num = (int)s.charAt(0) - 48; num (int)s.charAt(0) - 48 (int)s.charAt(0) s.charAt s 0 48 int nums[] = new int[3]; nums new int[3] 3 int sum = num; sum num char[] ops = {'+','+','+'}; ops {'+','+','+'} '+' '+' '+' boolean con = true; con true for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        } {
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        } nums[i] = (int)s.charAt(i+1) - 48 nums[i] nums i (int)s.charAt(i+1) - 48 (int)s.charAt(i+1) s.charAt s i+1 i 1 48 sum += nums[i] sum nums[i] nums i for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 && con i < 2 i 2 con i++ i++ i {
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        } {
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        } if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                } i == 1 i 1 {
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } ops[0] = '-' ops[0] ops 0 '-' nums[0] = Math.abs(nums[0]) * (-1) nums[0] nums 0 Math.abs(nums[0]) * (-1) Math.abs(nums[0]) Math.abs Math nums[0] nums 0 (-1) 1 {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                } ops[0] = '+' ops[0] ops 0 '+' nums[0] = Math.abs(nums[0]) nums[0] nums 0 Math.abs(nums[0]) Math.abs Math nums[0] nums 0 for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            } int j = 0; int j = 0; j 0 j < 2 && con j < 2 j 2 con j++ j++ j {
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            } {
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            } if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                } j == 1 j 1 {
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} ops[1] = '-' ops[1] ops 1 '-' nums[1] = Math.abs(nums[1]) * (-1) nums[1] nums 1 Math.abs(nums[1]) * (-1) Math.abs(nums[1]) Math.abs Math nums[1] nums 1 (-1) 1 {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                } ops[1] = '+' ops[1] ops 1 '+' nums[1] = Math.abs(nums[1]) nums[1] nums 1 Math.abs(nums[1]) Math.abs Math nums[1] nums 1 for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                } int k = 0; int k = 0; k 0 k < 2 && con k < 2 k 2 con k++ k++ k {
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                } {
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                } if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		} k == 1 k 1 {
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} ops[2] = '-' ops[2] ops 2 '-' nums[2] = Math.abs(nums[2]) * (-1) nums[2] nums 2 Math.abs(nums[2]) * (-1) Math.abs(nums[2]) Math.abs Math nums[2] nums 2 (-1) 1 {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		} ops[2] = '+' ops[2] ops 2 '+' nums[2] = Math.abs(nums[2]) nums[2] nums 2 Math.abs(nums[2]) Math.abs Math nums[2] nums 2 sum = num + nums[0] + nums[1] + nums[2] sum num + nums[0] + nums[1] + nums[2] nums[1] num + nums[0] + nums[1] + nums[2] num nums[0] nums 0 nums[1] nums 1 nums[2] nums 2 if(sum == 7) con = false; sum == 7 sum 7 con = false con false System.out.print(num) System.out.print System.out System System.out num for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        } int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        } {
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        } System.out.print(ops[i]) System.out.print System.out System System.out ops[i] ops i System.out.print(Math.abs(nums[i])) System.out.print System.out System System.out Math.abs(nums[i]) Math.abs Math nums[i] nums i System.out.println("=7") System.out.println System.out System System.out "=7" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	}
} Main
import java.util.*;
import java.lang.Math;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
      	String s = sc.next();
      	int num = (int)s.charAt(0) - 48;
      	int nums[] = new int[3];
      	int sum = num;
    	char[] ops = {'+','+','+'};
      	boolean con = true;
		
      	for(int i = 0;i < 3;i++){
          nums[i] = (int)s.charAt(i+1) - 48;
          sum += nums[i];
        }
     
      	for(int i = 0; i < 2 && con;i++){
          	if(i == 1){
            	ops[0] = '-';
              	nums[0] = Math.abs(nums[0]) * (-1);
            } else {
                ops[0] = '+';
              	nums[0] = Math.abs(nums[0]);
                }
        	for(int j = 0; j < 2 && con;j++){
              	if(j == 1){
            		ops[1] = '-';
              		nums[1] = Math.abs(nums[1]) * (-1);
            	} else {
                  	ops[1] = '+';
              		nums[1] = Math.abs(nums[1]);
                }
            	for(int k = 0;k < 2 && con;k++){
   					if(k == 1){
            			ops[2] = '-';
              			nums[2] = Math.abs(nums[2]) * (-1);
            		} else {
            			ops[2] = '+';
              			nums[2] = Math.abs(nums[2]);
            		}
                 	sum = num + nums[0] + nums[1] + nums[2];
                 	if(sum == 7) con = false;
                }
            }
        }
      	
      	System.out.print(num);
      	for(int i = 0;i < 3;i++){
          System.out.print(ops[i]);
          System.out.print(Math.abs(nums[i]));
        }
      	System.out.println("=7");
	}
}
