import java.util.Scanner;

public class Main {

    private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    }

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

    private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    }

} Main private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    } calc7 {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    } int e = 0; e 0 e = op1.equals("+") ? (a+b) : (a-b) e op1.equals("+") ? (a+b) : (a-b) op1.equals("+") op1.equals op1 "+" (a+b) a b (a-b) a b e = op2.equals("+") ? (e+c) : (e-c) e op2.equals("+") ? (e+c) : (e-c) op2.equals("+") op2.equals op2 "+" (e+c) e c (e-c) e c e = op3.equals("+") ? (e+d) : (e-d) e op3.equals("+") ? (e+d) : (e-d) op3.equals("+") op3.equals op3 "+" (e+d) e d (e-d) e d if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        } e == 7 e 7 {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        } System.out.println(a+op1+b+op2+c+op3+d+"=7") System.out.println System.out System System.out a+op1+b+op2+c+op3+d+"=7" d op3 c op2 b a+op1+b+op2+c+op3+d+"=7" a op1 b op2 c op3 d "=7" System.exit(0) System.exit System 0 return true; true return false; false int a a int b b int c c int d d String op1 op1 String op2 op2 String op3 op3 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    } main {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] sn = sc.next().split(""); sn sc.next().split("") sc.next().split sc.next() sc.next sc "" int a = Integer.parseInt(sn[0]); a Integer.parseInt(sn[0]) Integer.parseInt Integer sn[0] sn 0 int b = Integer.parseInt(sn[1]); b Integer.parseInt(sn[1]) Integer.parseInt Integer sn[1] sn 1 int c = Integer.parseInt(sn[2]); c Integer.parseInt(sn[2]) Integer.parseInt Integer sn[2] sn 2 int d = Integer.parseInt(sn[3]); d Integer.parseInt(sn[3]) Integer.parseInt Integer sn[3] sn 3 calc7(a, b, c, d, "+", "+", "+") calc7 a b c d "+" "+" "+" calc7(a, b, c, d, "+", "+", "-") calc7 a b c d "+" "+" "-" calc7(a, b, c, d, "+", "-", "+") calc7 a b c d "+" "-" "+" calc7(a, b, c, d, "+", "-", "-") calc7 a b c d "+" "-" "-" calc7(a, b, c, d, "-", "+", "+") calc7 a b c d "-" "+" "+" calc7(a, b, c, d, "-", "+", "-") calc7 a b c d "-" "+" "-" calc7(a, b, c, d, "-", "-", "+") calc7 a b c d "-" "-" "+" calc7(a, b, c, d, "-", "-", "-") calc7 a b c d "-" "-" "-" String[] args args public class Main {

    private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    }

} public class Main {

    private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    }

} Main
import java.util.Scanner;

public class Main {

    private static boolean calc7(int a, int b, int c, int d, String op1, String op2, String op3) {
        int e = 0;
        e = op1.equals("+") ? (a+b) : (a-b);
        e = op2.equals("+") ? (e+c) : (e-c);
        e = op3.equals("+") ? (e+d) : (e-d);

        if (e == 7) {
            System.out.println(a+op1+b+op2+c+op3+d+"=7");
            System.exit(0);
            return true;
        }
        return false;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String[] sn = sc.next().split("");
        int a = Integer.parseInt(sn[0]);
        int b = Integer.parseInt(sn[1]);
        int c = Integer.parseInt(sn[2]);
        int d = Integer.parseInt(sn[3]);

        calc7(a, b, c, d, "+", "+", "+");
        calc7(a, b, c, d, "+", "+", "-");
        calc7(a, b, c, d, "+", "-", "+");
        calc7(a, b, c, d, "+", "-", "-");
        calc7(a, b, c, d, "-", "+", "+");
        calc7(a, b, c, d, "-", "+", "-");
        calc7(a, b, c, d, "-", "-", "+");
        calc7(a, b, c, d, "-", "-", "-");
    }

}