import java.util.*;
import java.math.*;
     
class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        }        
    }

    private static boolean isSeven(int a, int b, int c, int d){
        if(a+b+c+d == 7) return true;
        else return false;
    }
} import java.util.*; util.* java import java.math.*; math.* java class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        }        
    }

    private static boolean isSeven(int a, int b, int c, int d){
        if(a+b+c+d == 7) return true;
        else return false;
    }
} Main public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        }        
    } main {
        
        try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        }        
    } try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        } catch(Exception e){
            e.printStackTrace();
        } Exception e {
            e.printStackTrace();
        } e.printStackTrace() e.printStackTrace e {

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String abcd = sc.next(); abcd sc.next() sc.next sc int a = Integer.parseInt(abcd.substring(0, 1)); a Integer.parseInt(abcd.substring(0, 1)) Integer.parseInt Integer abcd.substring(0, 1) abcd.substring abcd 0 1 int b = Integer.parseInt(abcd.substring(1, 2)); b Integer.parseInt(abcd.substring(1, 2)) Integer.parseInt Integer abcd.substring(1, 2) abcd.substring abcd 1 2 int c = Integer.parseInt(abcd.substring(2, 3)); c Integer.parseInt(abcd.substring(2, 3)) Integer.parseInt Integer abcd.substring(2, 3) abcd.substring abcd 2 3 int d = Integer.parseInt(abcd.substring(3, 4)); d Integer.parseInt(abcd.substring(3, 4)) Integer.parseInt Integer abcd.substring(3, 4) abcd.substring abcd 3 4 StringBuilder sb = new StringBuilder(); sb new StringBuilder() if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, b, c, d) isSeven a b c d {
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("+").append(b) sb.append("+").append sb.append("+") sb.append sb "+" b sb.append("+").append(c) sb.append("+").append sb.append("+") sb.append sb "+" c sb.append("+").append(d) sb.append("+").append sb.append("+") sb.append sb "+" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, b, c, -d) isSeven a b c -d d {
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("+").append(b) sb.append("+").append sb.append("+") sb.append sb "+" b sb.append("+").append(c) sb.append("+").append sb.append("+") sb.append sb "+" c sb.append("-").append(d) sb.append("-").append sb.append("-") sb.append sb "-" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, b, -c, d) isSeven a b -c c d {
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("+").append(b) sb.append("+").append sb.append("+") sb.append sb "+" b sb.append("-").append(c) sb.append("-").append sb.append("-") sb.append sb "-" c sb.append("+").append(d) sb.append("+").append sb.append("+") sb.append sb "+" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, -b, c, d) isSeven a -b b c d {
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("-").append(b) sb.append("-").append sb.append("-") sb.append sb "-" b sb.append("+").append(c) sb.append("+").append sb.append("+") sb.append sb "+" c sb.append("+").append(d) sb.append("+").append sb.append("+") sb.append sb "+" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, -b, c, -d) isSeven a -b b c -d d {
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("-").append(b) sb.append("-").append sb.append("-") sb.append sb "-" b sb.append("+").append(c) sb.append("+").append sb.append("+") sb.append sb "+" c sb.append("-").append(d) sb.append("-").append sb.append("-") sb.append sb "-" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, -b, -c, d) isSeven a -b b -c c d {
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("-").append(b) sb.append("-").append sb.append("-") sb.append sb "-" b sb.append("-").append(c) sb.append("-").append sb.append("-") sb.append sb "-" c sb.append("+").append(d) sb.append("+").append sb.append("+") sb.append sb "+" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, b, -c, -d) isSeven a b -c c -d d {
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("+").append(b) sb.append("+").append sb.append("+") sb.append sb "+" b sb.append("-").append(c) sb.append("-").append sb.append("-") sb.append sb "-" c sb.append("-").append(d) sb.append("-").append sb.append("-") sb.append sb "-" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } isSeven(a, -b, -c, -d) isSeven a -b b -c c -d d {
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } sb.append(a) sb.append sb a sb.append("-").append(b) sb.append("-").append sb.append("-") sb.append sb "-" b sb.append("-").append(c) sb.append("-").append sb.append("-") sb.append sb "-" c sb.append("-").append(d) sb.append("-").append sb.append("-") sb.append sb "-" d sb.append("=").append("7") sb.append("=").append sb.append("=") sb.append sb "=" "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String[] args args private static boolean isSeven(int a, int b, int c, int d){
        if(a+b+c+d == 7) return true;
        else return false;
    } isSeven {
        if(a+b+c+d == 7) return true;
        else return false;
    } if(a+b+c+d == 7) return true;
        else return false; a+b+c+d == 7 a+b+c+d c a+b+c+d a b c d 7 return true; true return false; false int a a int b b int c c int d d
import java.util.*;
import java.math.*;
     
class Main{
    public static void main(String[] args) {
        
        try(Scanner sc = new Scanner(System.in)){

            String abcd = sc.next();

            int a = Integer.parseInt(abcd.substring(0, 1));
            int b = Integer.parseInt(abcd.substring(1, 2));
            int c = Integer.parseInt(abcd.substring(2, 3));
            int d = Integer.parseInt(abcd.substring(3, 4));

            StringBuilder sb = new StringBuilder();

            if(isSeven(a, b, c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("+").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("+").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, b, -c, -d)){
                sb.append(a);
                sb.append("+").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            } else if(isSeven(a, -b, -c, -d)){
                sb.append(a);
                sb.append("-").append(b);
                sb.append("-").append(c);
                sb.append("-").append(d);
                sb.append("=").append("7");
                
                System.out.println(sb.toString());
            }
            

        }catch(Exception e){
            e.printStackTrace();
        }        
    }

    private static boolean isSeven(int a, int b, int c, int d){
        if(a+b+c+d == 7) return true;
        else return false;
    }
}
