import java.util.*;

public class Main {

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    }

} import java.util.*; util.* java public class Main {

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    }

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc char[] values = input.toCharArray(); values input.toCharArray() input.toCharArray input int a a b b c c d; d a = values[0] - 48 a values[0] - 48 values[0] values 0 48 b = values[1] - 48 b values[1] - 48 values[1] values 1 48 c = values[2] - 48 c values[2] - 48 values[2] values 2 48 d = values[3] - 48 d values[3] - 48 values[3] values 3 48 for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        } {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        } for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            } {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            } for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                } {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                } int sum = a; sum a sum += (i == 0) ? 0 - b : b sum (i == 0) ? 0 - b : b (i == 0) i 0 0 - b 0 b b sum += (j == 0) ? 0 - c : c sum (j == 0) ? 0 - c : c (j == 0) j 0 0 - c 0 c c sum += (k == 0) ? 0 - d : d sum (k == 0) ? 0 - d : d (k == 0) k 0 0 - d 0 d d if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    } sum == 7 sum 7 {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    } String ab = (i == 0) ? "-" : "+"; ab (i == 0) ? "-" : "+" (i == 0) i 0 "-" "+" String bc = (j == 0) ? "-" : "+"; bc (j == 0) ? "-" : "+" (j == 0) j 0 "-" "+" String cd = (k == 0) ? "-" : "+"; cd (k == 0) ? "-" : "+" (k == 0) k 0 "-" "+" System.out.println(a + ab + b + bc + c + cd + d + "=7") System.out.println System.out System System.out a + ab + b + bc + c + cd + d + "=7" d cd c bc b a + ab + b + bc + c + cd + d + "=7" a ab b bc c cd d "=7" return; String[] args args public class Main {

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    }

} public class Main {

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    }

} Main
import java.util.*;

public class Main {

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

        String input = sc.next();
        char[] values = input.toCharArray();
        int a,b,c,d;
        a = values[0] - 48;
        b = values[1] - 48;
        c = values[2] - 48;
        d = values[3] - 48;

        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {

                    int sum = a;
                    sum += (i == 0) ? 0 - b : b;
                    sum += (j == 0) ? 0 - c : c;
                    sum += (k == 0) ? 0 - d : d;

                    if (sum == 7) {
                        String ab = (i == 0) ? "-" : "+";
                        String bc = (j == 0) ? "-" : "+";
                        String cd = (k == 0) ? "-" : "+";
                        System.out.println(a + ab + b + bc + c + cd + d + "=7");
                        return;
                    }
                }
            }
        }
    }

}