import java.util.Scanner;

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

        //System.out.print("4桁の整数を入力してください\n4桁の整数:");
        int ABCD = stdIn.nextInt();

        int A = ABCD / 1000;
        int B = (ABCD - A * 1000) / 100;
        int C = (ABCD - A * 1000 - B * 100) / 10;
        int D = ABCD - (A * 1000 + B * 100 + C * 10);

        if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args) {
        Scanner stdIn = new Scanner((System.in));

        //System.out.print("4桁の整数を入力してください\n4桁の整数:");
        int ABCD = stdIn.nextInt();

        int A = ABCD / 1000;
        int B = (ABCD - A * 1000) / 100;
        int C = (ABCD - A * 1000 - B * 100) / 10;
        int D = ABCD - (A * 1000 + B * 100 + C * 10);

        if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
    }
} Main public static void main(String[] args) {
        Scanner stdIn = new Scanner((System.in));

        //System.out.print("4桁の整数を入力してください\n4桁の整数:");
        int ABCD = stdIn.nextInt();

        int A = ABCD / 1000;
        int B = (ABCD - A * 1000) / 100;
        int C = (ABCD - A * 1000 - B * 100) / 10;
        int D = ABCD - (A * 1000 + B * 100 + C * 10);

        if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
    } main {
        Scanner stdIn = new Scanner((System.in));

        //System.out.print("4桁の整数を入力してください\n4桁の整数:");
        int ABCD = stdIn.nextInt();

        int A = ABCD / 1000;
        int B = (ABCD - A * 1000) / 100;
        int C = (ABCD - A * 1000 - B * 100) / 10;
        int D = ABCD - (A * 1000 + B * 100 + C * 10);

        if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
    } Scanner stdIn = new Scanner((System.in)); stdIn new Scanner((System.in)) int ABCD = stdIn.nextInt(); ABCD stdIn.nextInt() stdIn.nextInt stdIn int A = ABCD / 1000; A ABCD / 1000 ABCD 1000 int B = (ABCD - A * 1000) / 100; B (ABCD - A * 1000) / 100 (ABCD - A * 1000) ABCD A * 1000 A 1000 100 int C = (ABCD - A * 1000 - B * 100) / 10; C (ABCD - A * 1000 - B * 100) / 10 (ABCD - A * 1000 - B * 100) ABCD - A * 1000 - B * 100 ABCD A * 1000 A 1000 B * 100 B 100 10 int D = ABCD - (A * 1000 + B * 100 + C * 10); D ABCD - (A * 1000 + B * 100 + C * 10) ABCD (A * 1000 + B * 100 + C * 10) A * 1000 + B * 100 + C * 10 A * 1000 A 1000 B * 100 B 100 C * 10 C 10 if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A + B + C + D) ==7 (A + B + C + D) C A + B + C + D A B C D 7 {
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        } System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7") System.out.print System.out System System.out A + "+" + B + "+" + C + "+" + D  + "=7" D "+" C "+" B A + "+" + B + "+" + C + "+" + D  + "=7" A "+" B "+" C "+" D "=7" if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A + B + C - D)== 7 (A + B + C - D) A + B + C A + B + C A B C D 7 {
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        } System.out.print(A + "+" + B + "+" + C + "-" + D + "=7") System.out.print System.out System System.out A + "+" + B + "+" + C + "-" + D + "=7" D "-" C "+" B A + "+" + B + "+" + C + "-" + D + "=7" A "+" B "+" C "-" D "=7" if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A + B - C + D)== 7 (A + B - C + D) A + B - C A + B A B C D 7 {
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        } System.out.print(A + "+" + B + "-" + C + "+" + D + "=7") System.out.print System.out System System.out A + "+" + B + "-" + C + "+" + D + "=7" D "+" C "-" B A + "+" + B + "-" + C + "+" + D + "=7" A "+" B "-" C "+" D "=7" if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A - B + C + D)== 7 (A - B + C + D) A - B + C + D A - B A B C D 7 {
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        } System.out.print(A + "-" + B + "+" + C + "+" + D + "=7") System.out.print System.out System System.out A + "-" + B + "+" + C + "+" + D + "=7" D "+" C "+" B A + "-" + B + "+" + C + "+" + D + "=7" A "-" B "+" C "+" D "=7" if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A + B - C - D)== 7 (A + B - C - D) A + B - C - D A + B A B C D 7 {
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        } System.out.print(A + "+" + B + "-" + C + "-" + D + "=7") System.out.print System.out System System.out A + "+" + B + "-" + C + "-" + D + "=7" D "-" C "-" B A + "+" + B + "-" + C + "-" + D + "=7" A "+" B "-" C "-" D "=7" if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A - B - C - D)== 7 (A - B - C - D) C A - B - C - D A B C D 7 {
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        } System.out.print(A + "-" + B + "-" + C + "+" + D + "=7") System.out.print System.out System System.out A + "-" + B + "-" + C + "+" + D + "=7" D "+" C "-" B A + "-" + B + "-" + C + "+" + D + "=7" A "-" B "-" C "+" D "=7" if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7"); (A - B + C - D)== 7 (A - B + C - D) A - B + C A - B A B C D 7 {
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        } System.out.print(A + "-" + B + "+" + C + "-" + D + "=7") System.out.print System.out System System.out A + "-" + B + "+" + C + "-" + D + "=7" D "-" C "+" B A + "-" + B + "+" + C + "-" + D + "=7" A "-" B "+" C "-" D "=7" System.out.print(A + "-" + B + "-" + C + "+" + D + "=7") System.out.print 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
import java.util.Scanner;

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

        //System.out.print("4桁の整数を入力してください\n4桁の整数:");
        int ABCD = stdIn.nextInt();

        int A = ABCD / 1000;
        int B = (ABCD - A * 1000) / 100;
        int C = (ABCD - A * 1000 - B * 100) / 10;
        int D = ABCD - (A * 1000 + B * 100 + C * 10);

        if ((A + B + C + D) ==7){
            System.out.print(A + "+" + B + "+" + C + "+" + D  + "=7");
        }
        else if((A + B + C - D)== 7){
            System.out.print(A + "+" + B + "+" + C + "-" + D + "=7");
        }
        else if((A + B - C + D)== 7){
            System.out.print(A + "+" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C + D)== 7){
            System.out.print(A + "-" + B + "+" + C + "+" + D + "=7");
        }
        else if((A + B - C - D)== 7){
            System.out.print(A + "+" + B + "-" + C + "-" + D + "=7");
        }
        else if((A - B - C - D)== 7){
            System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
        }
        else if((A - B + C - D)== 7){
            System.out.print(A + "-" + B + "+" + C + "-" + D + "=7");
        }
        else System.out.print(A + "-" + B + "-" + C + "+" + D + "=7");
    }
}
