import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    }
} Main public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    } main {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = scan.nextInt(); N scan.nextInt() scan.nextInt scan int A A B B C C D; D D = N % 10 D N % 10 N 10 N /= 10 N 10 C = N % 10 C N % 10 N 10 N /= 10 N 10 B = N % 10 B N % 10 N 10 N /= 10 N 10 A = N A N if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A + B + C + D == 7 A + B + C + D C A + B + C + D A B C D 7 System.out.printf("%d+%d+%d+%d=7", A, B, C, D) System.out.printf System.out System System.out "%d+%d+%d+%d=7" A B C D if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A + B + C - D == 7 A + B + C - D A + B + C A + B + C A B C D 7 System.out.printf("%d+%d+%d-%d=7", A, B, C, D) System.out.printf System.out System System.out "%d+%d+%d-%d=7" A B C D if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A + B - C + D == 7 A + B - C + D A + B - C A + B A B C D 7 System.out.printf("%d+%d-%d+%d=7", A, B, C, D) System.out.printf System.out System System.out "%d+%d-%d+%d=7" A B C D if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A + B - C - D == 7 A + B - C - D A + B - C - D A + B A B C D 7 System.out.printf("%d+%d-%d-%d=7", A, B, C, D) System.out.printf System.out System System.out "%d+%d-%d-%d=7" A B C D if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A - B + C + D == 7 A - B + C + D A - B + C + D A - B A B C D 7 System.out.printf("%d-%d+%d+%d=7", A, B, C, D) System.out.printf System.out System System.out "%d-%d+%d+%d=7" A B C D if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A - B + C - D == 7 A - B + C - D A - B + C A - B A B C D 7 System.out.printf("%d-%d+%d-%d=7", A, B, C, D) System.out.printf System.out System System.out "%d-%d+%d-%d=7" A B C D if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A - B - C + D == 7 A - B - C + D A - B - C A - B - C A B C D 7 System.out.printf("%d-%d-%d+%d=7", A, B, C, D) System.out.printf System.out System System.out "%d-%d-%d+%d=7" A B C D if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D); A - B - C - D == 7 A - B - C - D C A - B - C - D A B C D 7 System.out.printf("%d-%d-%d-%d=7", A, B, C, D) System.out.printf System.out System System.out "%d-%d-%d-%d=7" A B C D String[] args args public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    }
} public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int A, B, C, D;
        D = N % 10;
        N /= 10;
        C = N % 10;
        N /= 10;
        B = N % 10;
        N /= 10;
        A = N;

        if (A + B + C + D == 7) System.out.printf("%d+%d+%d+%d=7", A, B, C, D);
        else if (A + B + C - D == 7) System.out.printf("%d+%d+%d-%d=7", A, B, C, D);
        else if (A + B - C + D == 7) System.out.printf("%d+%d-%d+%d=7", A, B, C, D);
        else if (A + B - C - D == 7) System.out.printf("%d+%d-%d-%d=7", A, B, C, D);
        else if (A - B + C + D == 7) System.out.printf("%d-%d+%d+%d=7", A, B, C, D);
        else if (A - B + C - D == 7) System.out.printf("%d-%d+%d-%d=7", A, B, C, D);
        else if (A - B - C + D == 7) System.out.printf("%d-%d-%d+%d=7", A, B, C, D);
        else if (A - B - C - D == 7) System.out.printf("%d-%d-%d-%d=7", A, B, C, D);
    }
}