import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int in = sc.nextInt();
        sc.close();
        int[] each_dig = new int[4];
        for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        }
        char[] oprs = new char[3];
        for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        }
        System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7");
    }
} import java.util.Scanner; Scanner java.util class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int in = sc.nextInt();
        sc.close();
        int[] each_dig = new int[4];
        for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        }
        char[] oprs = new char[3];
        for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        }
        System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7");
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int in = sc.nextInt();
        sc.close();
        int[] each_dig = new int[4];
        for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        }
        char[] oprs = new char[3];
        for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        }
        System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7");
    } main {
        Scanner sc = new Scanner(System.in);
        int in = sc.nextInt();
        sc.close();
        int[] each_dig = new int[4];
        for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        }
        char[] oprs = new char[3];
        for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        }
        System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int in = sc.nextInt(); in sc.nextInt() sc.nextInt sc sc.close() sc.close sc int[] each_dig = new int[4]; each_dig new int[4] 4 for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            each_dig[i] = in % 10;
            in /= 10;
        } {
            each_dig[i] = in % 10;
            in /= 10;
        } each_dig[i] = in % 10 each_dig[i] each_dig i in % 10 in 10 in /= 10 in 10 char[] oprs = new char[3]; oprs new char[3] 3 for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        } {
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        } int sum = each_dig[3]; sum each_dig[3] each_dig 3 for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            } {
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            } if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                } (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
                    sum += each_dig[2 - j];
                } sum += each_dig[2 - j] sum each_dig[2 - j] each_dig 2 - j 2 j {
                    sum -= each_dig[2 - j];
                } sum -= each_dig[2 - j] sum each_dig[2 - j] each_dig 2 - j 2 j if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            } sum == 7 sum 7 {
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            } for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                } {
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                } if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    } (i >> j & 1) == 1 (i >> j & 1) i >> j i j 1 1 {
                        oprs[j] = '+';
                    } oprs[j] = '+' oprs[j] oprs j '+' {
                        oprs[j] = '-';
                    } oprs[j] = '-' oprs[j] oprs j '-' break; System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7") System.out.println System.out System System.out "" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7" each_dig[0] oprs[2] each_dig[1] oprs[1] each_dig[2] oprs[0] "" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7" "" each_dig[3] each_dig 3 oprs[0] oprs 0 each_dig[2] each_dig 2 oprs[1] oprs 1 each_dig[1] each_dig 1 oprs[2] oprs 2 each_dig[0] each_dig 0 "=7" String[] args args
import java.util.Scanner;
class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int in = sc.nextInt();
        sc.close();
        int[] each_dig = new int[4];
        for(int i = 0; i < 4; i++){
            each_dig[i] = in % 10;
            in /= 10;
        }
        char[] oprs = new char[3];
        for(int i = 0; i < 8; i++){
            int sum = each_dig[3];
            for(int j = 0; j < 3; j++){
                if((i >> j & 1) == 1){
                    sum += each_dig[2 - j];
                }else{
                    sum -= each_dig[2 - j];
                }
            }
            if(sum == 7){
                for(int j = 0; j < 3; j++){
                    if((i >> j & 1) == 1){
                        oprs[j] = '+';
                    }else{
                        oprs[j] = '-';
                    }
                }
                break;
            }
        }
        System.out.println("" + each_dig[3] + oprs[0] + each_dig[2] + oprs[1] + each_dig[1] + oprs[2] + each_dig[0] + "=7");
    }
}