import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    }
} import java.util.*; util.* java public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    }
} Main public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int imprtnum = scan.nextInt(); imprtnum scan.nextInt() scan.nextInt scan int A A B B C C D; D D=imprtnum%10 D imprtnum%10 imprtnum 10 imprtnum/=10 imprtnum 10 C=imprtnum%10 C imprtnum%10 imprtnum 10 imprtnum/=10 imprtnum 10 B=imprtnum%10 B imprtnum%10 imprtnum 10 imprtnum/=10 imprtnum 10 A=imprtnum%10 A imprtnum%10 imprtnum 10 boolean p1 = A+B+C+D==7; p1 A+B+C+D==7 A+B+C+D C A+B+C+D A B C D 7 boolean p2 = A+B+C-D==7; p2 A+B+C-D==7 A+B+C-D A+B+C A+B+C A B C D 7 boolean p3 = A+B-C+D==7; p3 A+B-C+D==7 A+B-C+D A+B-C A+B A B C D 7 boolean p4 = A+B-C-D==7; p4 A+B-C-D==7 A+B-C-D A+B-C-D A+B A B C D 7 boolean p5 = A-B+C+D==7; p5 A-B+C+D==7 A-B+C+D A-B+C+D A-B A B C D 7 boolean p6 = A-B+C-D==7; p6 A-B+C-D==7 A-B+C-D A-B+C A-B A B C D 7 boolean p7 = A-B-C+D==7; p7 A-B-C+D==7 A-B-C+D A-B-C A-B-C A B C D 7 boolean p8 = A-B-C-D==7; p8 A-B-C-D==7 A-B-C-D C A-B-C-D A B C D 7 if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p1 {
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        } System.out.println(A+"+"+B+"+"+C+"+"+D+"=7") System.out.println System.out System System.out A+"+"+B+"+"+C+"+"+D+"=7" D "+" C "+" B A+"+"+B+"+"+C+"+"+D+"=7" A "+" B "+" C "+" D "=7" if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p2 {
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        } System.out.println(A+"+"+B+"+"+C+"-"+D+"=7") System.out.println System.out System System.out A+"+"+B+"+"+C+"-"+D+"=7" D "-" C "+" B A+"+"+B+"+"+C+"-"+D+"=7" A "+" B "+" C "-" D "=7" if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p3 {
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        } System.out.println(A+"+"+B+"-"+C+"+"+D+"=7") System.out.println System.out System System.out A+"+"+B+"-"+C+"+"+D+"=7" D "+" C "-" B A+"+"+B+"-"+C+"+"+D+"=7" A "+" B "-" C "+" D "=7" if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p4 {
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        } System.out.println(A+"+"+B+"-"+C+"-"+D+"=7") System.out.println System.out System System.out A+"+"+B+"-"+C+"-"+D+"=7" D "-" C "-" B A+"+"+B+"-"+C+"-"+D+"=7" A "+" B "-" C "-" D "=7" if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p5 {
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        } System.out.println(A+"-"+B+"+"+C+"+"+D+"=7") System.out.println System.out System System.out A+"-"+B+"+"+C+"+"+D+"=7" D "+" C "+" B A+"-"+B+"+"+C+"+"+D+"=7" A "-" B "+" C "+" D "=7" if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p6 {
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        } System.out.println(A+"-"+B+"+"+C+"-"+D+"=7") System.out.println System.out System System.out A+"-"+B+"+"+C+"-"+D+"=7" D "-" C "+" B A+"-"+B+"+"+C+"-"+D+"=7" A "-" B "+" C "-" D "=7" if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p7 {
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        } System.out.println(A+"-"+B+"-"+C+"+"+D+"=7") System.out.println System.out System System.out A+"-"+B+"-"+C+"+"+D+"=7" D "+" C "-" B A+"-"+B+"-"+C+"+"+D+"=7" A "-" B "-" C "+" D "=7" if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } p8 {
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        } System.out.println(A+"-"+B+"-"+C+"-"+D+"=7") System.out.println System.out System System.out A+"-"+B+"-"+C+"-"+D+"=7" D "-" C "-" B A+"-"+B+"-"+C+"-"+D+"=7" A "-" B "-" C "-" D "=7" String args[] args public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    }
} public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    }
} Main
import java.util.*;

public class Main{
    public static void main(String args[]){
        Scanner scan = new Scanner(System.in);
        int imprtnum = scan.nextInt();

        int A,B,C,D;
        D=imprtnum%10;
        imprtnum/=10;
        C=imprtnum%10;
        imprtnum/=10;
        B=imprtnum%10;
        imprtnum/=10;
        A=imprtnum%10;

        boolean p1 = A+B+C+D==7;
        boolean p2 = A+B+C-D==7;
        boolean p3 = A+B-C+D==7;
        boolean p4 = A+B-C-D==7;
        boolean p5 = A-B+C+D==7;
        boolean p6 = A-B+C-D==7;
        boolean p7 = A-B-C+D==7;
        boolean p8 = A-B-C-D==7;

        if(p1){
            System.out.println(A+"+"+B+"+"+C+"+"+D+"=7");
        }else if(p2){
            System.out.println(A+"+"+B+"+"+C+"-"+D+"=7");
        }else if(p3){
            System.out.println(A+"+"+B+"-"+C+"+"+D+"=7");
        }else if(p4){
            System.out.println(A+"+"+B+"-"+C+"-"+D+"=7");
        }else if(p5){
            System.out.println(A+"-"+B+"+"+C+"+"+D+"=7");
        }else if(p6){
            System.out.println(A+"-"+B+"+"+C+"-"+D+"=7");
        }else if(p7){
            System.out.println(A+"-"+B+"-"+C+"+"+D+"=7");
        }else if(p8){
            System.out.println(A+"-"+B+"-"+C+"-"+D+"=7");
        }
    }
}