import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    } main {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String abcd = scanner.next(); abcd scanner.next() scanner.next scanner char[] split = abcd.toCharArray(); split abcd.toCharArray() abcd.toCharArray abcd int[] ints = new int[split.length]; ints new int[split.length] split.length split split.length for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        } int i = 0; int i = 0; i 0 i < split.length i split.length split split.length i++ i++ i {
            ints[i] = Character.getNumericValue(split[i]);
        } {
            ints[i] = Character.getNumericValue(split[i]);
        } ints[i] = Character.getNumericValue(split[i]) ints[i] ints i Character.getNumericValue(split[i]) Character.getNumericValue Character split[i] split i int digit = ints.length; digit ints.length ints ints.length for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        } int i = 0; int i = 0; i 0 i < Math.pow(2, digit - 1) i Math.pow(2, digit - 1) Math.pow Math 2 digit - 1 digit 1 i++ i++ i {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        } {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        } int sum = 0; sum 0 boolean sign = true; sign true StringBuilder sb = new StringBuilder(); sb new StringBuilder() for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            } int j = 0; int j = 0; j 0 j < digit j digit j++ j++ j {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            } {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            } sb.append(ints[j]) sb.append sb ints[j] ints j if (sign) sum += ints[j];
                else sum -= ints[j]; sign sum += ints[j] sum ints[j] ints j sum -= ints[j] sum ints[j] ints j if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                } (1 & i >> j) == 1 (1 & i >> j) 1 i >> j i j 1 {
                    sb.append("+");
                    sign = true;
                } sb.append("+") sb.append sb "+" sign = true sign true if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                } j < digit - 1 j digit - 1 digit 1 {
                    sb.append("-");
                    sign = false;
                } sb.append("-") sb.append sb "-" sign = false sign false if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            } sum == 7 sum 7 {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            } sb.append("=").append(sum) sb.append("=").append sb.append("=") sb.append sb "=" sum System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb break; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String abcd = scanner.next();

        char[] split = abcd.toCharArray();
        int[] ints = new int[split.length];
        for (int i = 0; i < split.length; i++) {
            ints[i] = Character.getNumericValue(split[i]);
        }
        int digit = ints.length;

        for (int i = 0; i < Math.pow(2, digit - 1); i++) {
            int sum = 0;
            boolean sign = true; // true: +, false: -
            StringBuilder sb = new StringBuilder();
            for (int j = 0; j < digit; j++) {
                sb.append(ints[j]);
                if (sign) sum += ints[j];
                else sum -= ints[j];
                if ((1 & i >> j) == 1) {
                    sb.append("+");
                    sign = true;
                } else if (j < digit - 1) {
                    sb.append("-");
                    sign = false;
                }
            }
            if (sum == 7) {
                sb.append("=").append(sum);
                System.out.println(sb.toString());
                break;
            }
        }
    }
}
