import java.util.*;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    }
} import java.util.*; util.* java public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    }
} Main public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    } main {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String input = sc.next(); input sc.next() sc.next sc sc.close() sc.close sc int[] input_ary = new int[4]; input_ary new int[4] 4 for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            input_ary[i] = input.charAt(i) - '0';
        } {
            input_ary[i] = input.charAt(i) - '0';
        } input_ary[i] = input.charAt(i) - '0' input_ary[i] input_ary i input.charAt(i) - '0' input.charAt(i) input.charAt input i '0' String[] calc_ary = new String[8]; calc_ary new String[8] 8 int cnt = 0; cnt 0 StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        } {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        } for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            } {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            } for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                } {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                } sb.append(i) sb.append sb i sb.append(j) sb.append sb j sb.append(k) sb.append sb k calc_ary[cnt] = sb.toString() calc_ary[cnt] calc_ary cnt sb.toString() sb.toString sb sb = new StringBuilder() sb new StringBuilder() cnt++ cnt char target = 0; target 0 int sum = 0; sum 0 for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        } String elm calc_ary {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        } {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        } sum = input_ary[0] sum input_ary[0] input_ary 0 for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            } int i = 0; int i = 0; i 0 i < elm.length() i elm.length() elm.length elm i++ i++ i {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            } {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            } target = elm.charAt(i) target elm.charAt(i) elm.charAt elm i switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                } target case '0': '0' case '0': sum -= input_ary[i + 1] sum input_ary[i + 1] input_ary i + 1 i 1 break; case '1': '1' case '1': sum += input_ary[i + 1] sum input_ary[i + 1] input_ary i + 1 i 1 break; if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            } sum == 7 sum 7 {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            } sb.append(input_ary[0]) sb.append sb input_ary[0] input_ary 0 sb.append(elm.charAt(0) == '0' ? "-" : "+") sb.append sb elm.charAt(0) == '0' ? "-" : "+" elm.charAt(0) == '0' elm.charAt(0) elm.charAt elm 0 '0' "-" "+" sb.append(input_ary[1]) sb.append sb input_ary[1] input_ary 1 sb.append(elm.charAt(1) == '0' ? "-" : "+") sb.append sb elm.charAt(1) == '0' ? "-" : "+" elm.charAt(1) == '0' elm.charAt(1) elm.charAt elm 1 '0' "-" "+" sb.append(input_ary[2]) sb.append sb input_ary[2] input_ary 2 sb.append(elm.charAt(2) == '0' ? "-" : "+") sb.append sb elm.charAt(2) == '0' ? "-" : "+" elm.charAt(2) == '0' elm.charAt(2) elm.charAt elm 2 '0' "-" "+" sb.append(input_ary[3]) sb.append sb input_ary[3] input_ary 3 sb.append("=7") sb.append sb "=7" break; sum = 0 sum 0 System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb String... args args public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    }
} public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    }
} Main
import java.util.*;

public class Main {
    public static void main(String... args) {
        Scanner sc = new Scanner(System.in);
        String input = sc.next();
        sc.close();

        int[] input_ary = new int[4];
        for (int i = 0; i < 4; i++) {
            input_ary[i] = input.charAt(i) - '0';
        }

        String[] calc_ary = new String[8];
        int cnt = 0;
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    sb.append(i);
                    sb.append(j);
                    sb.append(k);
                    calc_ary[cnt] = sb.toString();
                    sb = new StringBuilder();
                    cnt++;
                }
            }
        }

        char target = 0;
        int sum = 0;
        for (String elm : calc_ary) {
            sum = input_ary[0];
            for (int i = 0; i < elm.length(); i++) {
                target = elm.charAt(i);
                switch (target) {
                case '0':
                    sum -= input_ary[i + 1];
                    break;
                case '1':
                    sum += input_ary[i + 1];
                    break;
                }
            }
            if (sum == 7) {
                sb.append(input_ary[0]);
                sb.append(elm.charAt(0) == '0' ? "-" : "+");
                sb.append(input_ary[1]);
                sb.append(elm.charAt(1) == '0' ? "-" : "+");
                sb.append(input_ary[2]);
                sb.append(elm.charAt(2) == '0' ? "-" : "+");
                sb.append(input_ary[3]);
                sb.append("=7");
                break;
            }
            sum = 0;
        }
        System.out.println(sb.toString());
    }
}