import java.util.*;
 
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
 
        String S = sc.next();
        int A = Integer.parseInt(S.substring(0, 1));
        int B = Integer.parseInt(S.substring(1, 2));
        int C = Integer.parseInt(S.substring(2, 3));
        int D = Integer.parseInt(S.substring(3));
        int suma = A;
        int sumb;
        int sumc;
        int sumd;
        String x;
        String y;
        String z;
        
        for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        }
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
 
        String S = sc.next();
        int A = Integer.parseInt(S.substring(0, 1));
        int B = Integer.parseInt(S.substring(1, 2));
        int C = Integer.parseInt(S.substring(2, 3));
        int D = Integer.parseInt(S.substring(3));
        int suma = A;
        int sumb;
        int sumc;
        int sumd;
        String x;
        String y;
        String z;
        
        for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        }
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
 
        String S = sc.next();
        int A = Integer.parseInt(S.substring(0, 1));
        int B = Integer.parseInt(S.substring(1, 2));
        int C = Integer.parseInt(S.substring(2, 3));
        int D = Integer.parseInt(S.substring(3));
        int suma = A;
        int sumb;
        int sumc;
        int sumd;
        String x;
        String y;
        String z;
        
        for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
 
        String S = sc.next();
        int A = Integer.parseInt(S.substring(0, 1));
        int B = Integer.parseInt(S.substring(1, 2));
        int C = Integer.parseInt(S.substring(2, 3));
        int D = Integer.parseInt(S.substring(3));
        int suma = A;
        int sumb;
        int sumc;
        int sumd;
        String x;
        String y;
        String z;
        
        for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String S = sc.next(); S sc.next() sc.next sc int A = Integer.parseInt(S.substring(0, 1)); A Integer.parseInt(S.substring(0, 1)) Integer.parseInt Integer S.substring(0, 1) S.substring S 0 1 int B = Integer.parseInt(S.substring(1, 2)); B Integer.parseInt(S.substring(1, 2)) Integer.parseInt Integer S.substring(1, 2) S.substring S 1 2 int C = Integer.parseInt(S.substring(2, 3)); C Integer.parseInt(S.substring(2, 3)) Integer.parseInt Integer S.substring(2, 3) S.substring S 2 3 int D = Integer.parseInt(S.substring(3)); D Integer.parseInt(S.substring(3)) Integer.parseInt Integer S.substring(3) S.substring S 3 int suma = A; suma A int sumb; sumb int sumc; sumc int sumd; sumd String x; x String y; y String z; z for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        } int i=0; int i=0; i 0 i<2 i 2 i++ i++ i {
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        } {
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        } sumb = suma sumb suma if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            } i==0 i 0 {
                sumb += B;
                x = "+";
            } sumb += B sumb B x = "+" x "+" {
                sumb -= B;
                x = "-";
            } sumb -= B sumb B x = "-" x "-" for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            } int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            } {
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            } sumc = sumb sumc sumb if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                } j==0 j 0 {
                    sumc += C;
                    y = "+";
                } sumc += C sumc C y = "+" y "+" {
                    sumc -= C;
                    y = "-";
                } sumc -= C sumc C y = "-" y "-" for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                } int k=0; int k=0; k 0 k<2 k 2 k++ k++ k {
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                } {
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                } sumd = sumc sumd sumc if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    } k==0 k 0 {
                        sumd += D;
                        z = "+";
                    } sumd += D sumd D z = "+" z "+" {
                        sumd -= D;
                        z = "-";
                    } sumd -= D sumd D z = "-" z "-" if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    } sumd==7 sumd 7 {
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    } System.out.println(A + x + B + y + C + z + D + "=7" ) System.out.println System.out System System.out A + x + B + y + C + z + D + "=7" D z C y B A + x + B + y + C + z + D + "=7" A x B y C z D "=7" return; String[] args args
import java.util.*;
 
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
 
        String S = sc.next();
        int A = Integer.parseInt(S.substring(0, 1));
        int B = Integer.parseInt(S.substring(1, 2));
        int C = Integer.parseInt(S.substring(2, 3));
        int D = Integer.parseInt(S.substring(3));
        int suma = A;
        int sumb;
        int sumc;
        int sumd;
        String x;
        String y;
        String z;
        
        for(int i=0; i<2; i++){
            sumb = suma;
            if(i==0){
                sumb += B;
                x = "+";
            }
            else{
                sumb -= B;
                x = "-";
            }
            for(int j=0; j<2; j++){
                sumc = sumb;
                if(j==0){
                    sumc += C;
                    y = "+";
                }
                else{
                    sumc -= C;
                    y = "-";
                }
                for(int k=0; k<2; k++){
                    sumd = sumc;
                    if(k==0){
                        sumd += D;
                        z = "+";
                    }
                    else{
                        sumd -= D;
                        z = "-";
                    }
                    if(sumd==7){
                        System.out.println(A + x + B + y + C + z + D + "=7" );
                        return;
                    }
                }
            }
        }
    }
}