import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    }

} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    }

} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int d[] = new int[4]; d new int[4] 4 for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            d[i] = x%10;
            x /= 10;
        } {
            d[i] = x%10;
            x /= 10;
        } d[i] = x%10 d[i] d i x%10 x 10 x /= 10 x 10 int a = d[3]; a d[3] d 3 int b = d[2]; b d[2] d 2 int c = d[1]; c d[1] d 1 int e = d[0]; e d[0] d 0 int k = 1; k 1 int j = 0; j 0 switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        } k case 1: 1 case 1: j = a+b+c+e j a+b+c+e c a+b+c+e a b c e if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;} System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ) System.out.println System.out System System.out a+  "+" + b + "+" + c + "+" + e + "=7" e "+" c "+" b a+  "+" + b + "+" + c + "+" + e + "=7" a "+" b "+" c "+" e "=7" break; case 2: 2 case 2: j = a-b+c+e j a-b+c+e a-b+c+e a-b a b c e if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;} System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ) System.out.println System.out System System.out a+  "-" + b + "+" + c + "+" + e + "=7" e "+" c "+" b a+  "-" + b + "+" + c + "+" + e + "=7" a "-" b "+" c "+" e "=7" break; case 3: 3 case 3: j = a-b+c-e j a-b+c-e a-b+c a-b a b c e if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;} System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ) System.out.println System.out System System.out a+  "-" + b + "+" + c + "-" + e + "=7" e "-" c "+" b a+  "-" + b + "+" + c + "-" + e + "=7" a "-" b "+" c "-" e "=7" break; case 4: 4 case 4: j = a-b-c+e j a-b-c+e a-b-c a-b-c a b c e if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;} System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ) System.out.println System.out System System.out a+  "-" + b + "-" + c + "+" + e + "=7" e "+" c "-" b a+  "-" + b + "-" + c + "+" + e + "=7" a "-" b "-" c "+" e "=7" break; case 5: 5 case 5: j = a-b-c-e j a-b-c-e c a-b-c-e a b c e if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;} System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ) System.out.println System.out System System.out a+  "-" + b + "-" + c + "-" + e + "=7" e "-" c "-" b a+  "-" + b + "-" + c + "-" + e + "=7" a "-" b "-" c "-" e "=7" break; case 6: 6 case 6: j = a+b-c+e j a+b-c+e a+b-c a+b a b c e if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;} System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ) System.out.println System.out System System.out a+  "+" + b + "-" + c + "+" + e + "=7" e "+" c "-" b a+  "+" + b + "-" + c + "+" + e + "=7" a "+" b "-" c "+" e "=7" break; case 7: 7 case 7: j = a+b+c-e j a+b+c-e a+b+c a+b+c a b c e if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;} System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ) System.out.println System.out System System.out a+  "+" + b + "+" + c + "-" + e + "=7" e "-" c "+" b a+  "+" + b + "+" + c + "-" + e + "=7" a "+" b "+" c "-" e "=7" break; case 8: 8 case 8: j = a+b-c-e j a+b-c-e a+b-c-e a+b a b c e if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;} j==7 j 7 {System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;} System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ) System.out.println System.out System System.out a+  "+" + b + "-" + c + "-" + e + "=7" e "-" c "-" b a+  "+" + b + "-" + c + "-" + e + "=7" a "+" b "-" c "-" e "=7" break; default: default: System.out.println("間違い") System.out.println System.out System System.out "間違い" break; String args[] args public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    }

} public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    }

} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d[] = new int[4];
        for(int i=0;i<4;i++){
            d[i] = x%10;
            x /= 10;
        }
        int a = d[3];//1のくらい
        int b = d[2];
        int c = d[1];
        int e = d[0];
        int k = 1;
        int j = 0;

        switch(k){
            case 1:j = a+b+c+e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "+" + e + "=7" ); break;}
            case 2:j = a-b+c+e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "+" + e + "=7" ); break;}
            case 3:j = a-b+c-e; if(j==7){System.out.println(a+  "-" + b + "+" + c + "-" + e + "=7" ); break;}
            case 4:j = a-b-c+e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "+" + e + "=7" ); break;}
            case 5:j = a-b-c-e; if(j==7){System.out.println(a+  "-" + b + "-" + c + "-" + e + "=7" ); break;}
            case 6:j = a+b-c+e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "+" + e + "=7" ); break;}
            case 7:j = a+b+c-e; if(j==7){System.out.println(a+  "+" + b + "+" + c + "-" + e + "=7" ); break;}
            case 8:j = a+b-c-e; if(j==7){System.out.println(a+  "+" + b + "-" + c + "-" + e + "=7" ); break;}
            default:System.out.println("間違い"); break;
        }
    }

}
