import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    }

    private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    }

    private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        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);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    }

    private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    }

    private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        return a - b;
    }

} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    } main {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int line = sc.nextInt(); line sc.nextInt() sc.nextInt sc sc.close() sc.close sc int d = line % 10; d line % 10 line 10 int c = (line / 10) % 10; c (line / 10) % 10 (line / 10) line 10 10 int b = (line / 100) % 10; b (line / 100) % 10 (line / 100) line 100 10 int a = (line / 1000) % 10; a (line / 1000) % 10 (line / 1000) line 1000 10 boolean endFlag = false; endFlag false for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        } int i = 0; int i = 0; i 0 i <=1 i 1 i++ i++ i {
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        } {
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        } for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            } int j = 0; int j = 0; j 0 j <=1 j 1 j++ j++ j {
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            } {
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            } for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                } int k = 0; int k = 0; k 0 k <=1 k 1 k++ k++ k {
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                } {
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                } int tmp = calc(a,b,i); tmp calc(a,b,i) calc a b i tmp = calc(tmp,c,j) tmp calc(tmp,c,j) calc tmp c j tmp = calc(tmp,d,k) tmp calc(tmp,d,k) calc tmp d k if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    } tmp == 7 tmp 7 {
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    } System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7") System.out.println System.out System System.out a + op(i) + b + op(j) + c + op(k) + d + "=7" d op(k) c op(j) b a + op(i) + b + op(j) + c + op(k) + d + "=7" a op(i) op i b op(j) op j c op(k) op k d "=7" endFlag = true endFlag true break; if(endFlag){
                    break;
                } endFlag {
                    break;
                } break; if(endFlag){
                break;
            } endFlag {
                break;
            } break; String[] args args private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    } op {
        if(i == 0){
            return "+";
        }
        return "-";
    } if(i == 0){
            return "+";
        } i == 0 i 0 {
            return "+";
        } return "+"; "+" return "-"; "-" int i i private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        return a - b;
    } calc {
        if(i == 0){
            return a + b;
        }
        return a - b;
    } if(i == 0){
            return a + b;
        } i == 0 i 0 {
            return a + b;
        } return a + b; a + b a b return a - b; a - b a b int a a int b b int i i public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    }

    private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    }

    private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        return a - b;
    }

} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    }

    private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    }

    private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        return a - b;
    }

} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int line = sc.nextInt();
        sc.close();
        int d = line % 10;
        int c = (line / 10) % 10;
        int b = (line / 100) % 10;
        int a = (line / 1000) % 10;

        boolean endFlag = false;
        for(int i = 0; i <=1; i++){
            for(int j = 0; j <=1; j++){
                for(int k = 0; k <=1; k++){
                    int tmp = calc(a,b,i);
                    tmp = calc(tmp,c,j);
                    tmp = calc(tmp,d,k);
                    if(tmp == 7){
                        System.out.println(a + op(i) + b + op(j) + c + op(k) + d + "=7");
                        endFlag = true;
                        break;
                    }
                }
                if(endFlag){
                    break;
                }
            }
            if(endFlag){
                break;
            }
        }

    }

    private static String op(int i) {
        if(i == 0){
            return "+";
        }
        return "-";
    }

    private static int calc(int a, int b, int i) {
        if(i == 0){
            return a + b;
        }
        return a - b;
    }

}