import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);
    Map<Integer, Integer> map = new HashMap<>();

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    }

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

    Scanner sc = new Scanner(System.in);
    Map<Integer, Integer> map = new HashMap<>();

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    }

} Main Scanner sc = new Scanner(System.in); sc new Scanner(System.in) Map<Integer, Integer> map = new HashMap<>(); map new HashMap<>() public static void main(String[] args) {
        new Main().run();
    } main {
        new Main().run();
    } new Main().run() new Main().run new Main() String[] args args void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    } run {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    } char[] arr = sc.next().toCharArray(); arr sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc StringBuffer sb = new StringBuffer(); sb new StringBuffer() long ans = 0; ans 0 int[] str = new int[3]; str new int[3] 3 sb.append((arr[0]-'0')) sb.append sb (arr[0]-'0') arr[0] arr 0 '0' sb.append( (str[0]==0) ? "+" : "-" ) sb.append sb (str[0]==0) ? "+" : "-" (str[0]==0) str[0] str 0 0 "+" "-" sb.append((arr[1]-'0')) sb.append sb (arr[1]-'0') arr[1] arr 1 '0' sb.append( (str[1]==0) ? "+" : "-" ) sb.append sb (str[1]==0) ? "+" : "-" (str[1]==0) str[1] str 1 0 "+" "-" sb.append((arr[2]-'0')) sb.append sb (arr[2]-'0') arr[2] arr 2 '0' sb.append( (str[2]==0) ? "+" : "-" ) sb.append sb (str[2]==0) ? "+" : "-" (str[2]==0) str[2] str 2 0 "+" "-" sb.append((arr[3]-'0')) sb.append sb (arr[3]-'0') arr[3] arr 3 '0' sb.append("=") sb.append sb "=" sb.append("7") sb.append sb "7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb public class Main {

    Scanner sc = new Scanner(System.in);
    Map<Integer, Integer> map = new HashMap<>();

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    }

} public class Main {

    Scanner sc = new Scanner(System.in);
    Map<Integer, Integer> map = new HashMap<>();

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    }

} Main
import java.util.*;

public class Main {

    Scanner sc = new Scanner(System.in);
    Map<Integer, Integer> map = new HashMap<>();

    public static void main(String[] args) {
        new Main().run();
    }

    void run() {

        char[] arr = sc.next().toCharArray();

        StringBuffer sb = new StringBuffer();

//        System.out.println(arr[0]-'0');

        long ans = 0;

        int[] str = new int[3];

        outer:
        for (int i=0; i<2; i++) {
            ans = 0;
            for (int j=0; j<2; j++) {
                for (int k=0; k<2; k++) {
                    int a1 = arr[0] - '0';
                    int a2 = arr[1] - '0';
                    int a3 = arr[2] - '0';
                    int a4 = arr[3] - '0';
                    if (i==0) ans = a1 + a2;
                    else ans = a1 - a2;
                    if (j==0) ans += a3;
                    else ans -= a3;
                    if (k==0) ans += a4;
                    else ans -= a4;
                    if (ans == 7) {
                        str[0] = i;
                        str[1] = j;
                        str[2] = k;
                        break outer;
                    }
                }
            }
        }

//        System.out.println(str[0]);

        sb.append((arr[0]-'0'));
        sb.append( (str[0]==0) ? "+" : "-" );
        sb.append((arr[1]-'0'));
        sb.append( (str[1]==0) ? "+" : "-" );
        sb.append((arr[2]-'0'));
        sb.append( (str[2]==0) ? "+" : "-" );
        sb.append((arr[3]-'0'));
        sb.append("=");
        sb.append("7");

        System.out.println(sb.toString());

    }

}
