import java.util.*;
import java.util.Map.Entry;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    }
} import java.util.*; util.* java import java.util.Map.Entry; Entry java.util.Map public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    }
} Main public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    } main {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc char n[] = S.toCharArray(); n S.toCharArray() S.toCharArray S int A = n[0] - 48; A n[0] - 48 n[0] n 0 48 int B = n[1] - 48; B n[1] - 48 n[1] n 1 48 int C = n[2] - 48; C n[2] - 48 n[2] n 2 48 int D = n[3] - 48; D n[3] - 48 n[3] n 3 48 int nums[] = {A, B, C, D}; nums {A, B, C, D} A B C D for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        } int i = 0; int i = 0; i 0 i < (1 << 3) i (1 << 3) 1 3 i++ i++ i {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        } {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        } int sum = nums[0]; sum nums[0] nums 0 for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            } {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            } if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                } (i>>j & 1) == 1 (i>>j & 1) i>>j i j 1 1 {
                    sum += nums[j+1];
                } sum += nums[j+1] sum nums[j+1] nums j+1 j 1 {
                    sum -= nums[j+1];
                } sum -= nums[j+1] sum nums[j+1] nums j+1 j 1 if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            } sum == 7 sum 7 {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            } StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(nums[0]) sb.append sb nums[0] nums 0 for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                } {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                } if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    } (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
                        sb.append("+");
                    } sb.append("+") sb.append sb "+" {
                        sb.append("-");
                    } sb.append("-") sb.append sb "-" sb.append(nums[j+1]) sb.append sb nums[j+1] nums j+1 j 1 sb.append("=7") sb.append sb "=7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb break; String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    }
} Main
import java.util.*;
import java.util.Map.Entry;

public class Main {
    public static void main(String[] args) throws Exception {
        
        Scanner sc = new Scanner(System.in);
        String S = sc.next();
        char n[] = S.toCharArray();
        
        int A = n[0] - 48;
        int B = n[1] - 48;
        int C = n[2] - 48;
        int D = n[3] - 48;
        int nums[] = {A, B, C, D};

 
        for( int i = 0; i < (1 << 3); i++ ) {
            int sum = nums[0];
            for( int j = 0; j < 3; j++ ) {
                if( (i>>j & 1) == 1 ) {
                    sum += nums[j+1];
                } else {
                    sum -= nums[j+1];
                }
            }
            
            if( sum == 7 ) {
                StringBuilder sb = new StringBuilder();
                sb.append(nums[0]);
                for( int j = 0; j < 3; j++ ) {
                    if( (i >> j & 1) == 1  ) {
                        sb.append("+");
                    } else {
                        sb.append("-");
                    }
                    sb.append(nums[j+1]);
                }
                sb.append("=7");
                System.out.println(sb.toString());
                break;
            }
        }
    }
}
