import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    }

    private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    }

    private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    }

    private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    }

    private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] a = new int[4]; a new int[4] 4 a[0] = Character.getNumericValue(s.charAt(0)) a[0] a 0 Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 a[1] = Character.getNumericValue(s.charAt(1)) a[1] a 1 Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 a[2] = Character.getNumericValue(s.charAt(2)) a[2] a 2 Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 a[3] = Character.getNumericValue(s.charAt(3)) a[3] a 3 Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 String[] op = new String[3]; op new String[3] 3 dfs(a, op, 0) dfs a op 0 System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7") System.out.println System.out System System.out a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7" a[3] op[2] a[2] op[1] a[1] a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7" a[0] a 0 op[0] op 0 a[1] a 1 op[1] op 1 a[2] a 2 op[2] op 2 a[3] a 3 "=7" String[] args args private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    } dfs {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    } int sum = 0; sum 0 if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        } n == 3 n 3 {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        } sum = sumsub(op[0], a[0], a[1]) sum sumsub(op[0], a[0], a[1]) sumsub op[0] op 0 a[0] a 0 a[1] a 1 sum = sumsub(op[1], sum, a[2]) sum sumsub(op[1], sum, a[2]) sumsub op[1] op 1 sum a[2] a 2 sum = sumsub(op[2], sum, a[3]) sum sumsub(op[2], sum, a[3]) sumsub op[2] op 2 sum a[3] a 3 return sum == 7; sum == 7 sum 7 op[n] = "+" op[n] op n "+" if (dfs(a, op,n + 1)) {
            return true;
        } dfs(a, op,n + 1) dfs a op n + 1 n 1 {
            return true;
        } return true; true op[n] = "-" op[n] op n "-" if (dfs(a, op,n + 1)) {
            return true;
        } dfs(a, op,n + 1) dfs a op n + 1 n 1 {
            return true;
        } return true; true return false; false int[] a a String[] op op int n n private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    } sumsub {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    } if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        } "+".equals(op) "+".equals "+" op {
            return a + b;
        } return a + b; a + b a b {
            return a - b;
        } return a - b; a - b a b String op op int a a int b b public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    }

    private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    }

    private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    }

    private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    }

    private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int[] a = new int[4];
        a[0] = Character.getNumericValue(s.charAt(0));
        a[1] = Character.getNumericValue(s.charAt(1));
        a[2] = Character.getNumericValue(s.charAt(2));
        a[3] = Character.getNumericValue(s.charAt(3));
        String[] op = new String[3];
        dfs(a, op, 0);
        System.out.println(a[0] + op[0] + a[1] + op[1] + a[2] + op[2] + a[3] + "=7");
    }

    private static boolean dfs(int[] a, String[] op, int n) {
        int sum = 0;
        if (n == 3) {
            sum = sumsub(op[0], a[0], a[1]);
            sum = sumsub(op[1], sum, a[2]);
            sum = sumsub(op[2], sum, a[3]);
            return sum == 7;
        }
        op[n] = "+";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        op[n] = "-";
        if (dfs(a, op,n + 1)) {
            return true;
        }
        return false;
    }

    private static int sumsub(String op, int a, int b) {
        if ("+".equals(op)) {
            return a + b;
        } else {
            return a - b;
        }
    }
}