import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));
        char[] kigou = {'+', '-'};
        int sum = 0;
        String result = "";

        for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        }

        result += "=7";
        System.out.println(result);

    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.*; util.* java import java.util.stream.Collectors; Collectors java.util.stream class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));
        char[] kigou = {'+', '-'};
        int sum = 0;
        String result = "";

        for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        }

        result += "=7";
        System.out.println(result);

    }
} Main public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));
        char[] kigou = {'+', '-'};
        int sum = 0;
        String result = "";

        for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        }

        result += "=7";
        System.out.println(result);

    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));
        char[] kigou = {'+', '-'};
        int sum = 0;
        String result = "";

        for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        }

        result += "=7";
        System.out.println(result);

    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = Character.getNumericValue(s.charAt(0)); a Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 int b = Character.getNumericValue(s.charAt(1)); b Character.getNumericValue(s.charAt(1)) Character.getNumericValue Character s.charAt(1) s.charAt s 1 int c = Character.getNumericValue(s.charAt(2)); c Character.getNumericValue(s.charAt(2)) Character.getNumericValue Character s.charAt(2) s.charAt s 2 int d = Character.getNumericValue(s.charAt(3)); d Character.getNumericValue(s.charAt(3)) Character.getNumericValue Character s.charAt(3) s.charAt s 3 char[] kigou = {'+', '-'}; kigou {'+', '-'} '+' '-' int sum = 0; sum 0 String result = ""; result "" for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        } char aKigou kigou {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        } {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        } for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            } char aKigou1 kigou {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            } {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            } for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                } char aKigou2 kigou {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                } {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                } if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    } aKigou == '+' aKigou '+' {
                        sum = a + b;

                    } sum = a + b sum a + b a b {
                        sum = a - b;
                    } sum = a - b sum a - b a b if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    } aKigou1 == '+' aKigou1 '+' {
                        sum = sum + c;

                    } sum = sum + c sum sum + c sum c {
                        sum = sum - c;
                    } sum = sum - c sum sum - c sum c if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    } aKigou2 == '+' aKigou2 '+' {
                        sum = sum + d;

                    } sum = sum + d sum sum + d sum d {
                        sum = sum - d;
                    } sum = sum - d sum sum - d sum d if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    } sum == 7 sum 7 {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    } result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d) result String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d) aKigou2 String.valueOf(c) aKigou1 String.valueOf(b) String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d) String.valueOf(a) String.valueOf String a aKigou String.valueOf(b) String.valueOf String b aKigou1 String.valueOf(c) String.valueOf String c aKigou2 String.valueOf(d) String.valueOf String d break; if (sum == 7) {
                    break;
                } sum == 7 sum 7 {
                    break;
                } break; if (sum == 7) {
                break;
            } sum == 7 sum 7 {
                break;
            } break; result += "=7" result "=7" System.out.println(result) System.out.println System.out System System.out result String args[] args
import java.math.BigDecimal;
import java.util.*;
import java.util.stream.Collectors;

class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Character.getNumericValue(s.charAt(0));
        int b = Character.getNumericValue(s.charAt(1));
        int c = Character.getNumericValue(s.charAt(2));
        int d = Character.getNumericValue(s.charAt(3));
        char[] kigou = {'+', '-'};
        int sum = 0;
        String result = "";

        for (char aKigou : kigou) {
            for (char aKigou1 : kigou) {
                for (char aKigou2 : kigou) {

                    if (aKigou == '+') {
                        sum = a + b;

                    } else {
                        sum = a - b;
                    }

                    if (aKigou1 == '+') {
                        sum = sum + c;

                    } else {
                        sum = sum - c;
                    }

                    if (aKigou2 == '+') {
                        sum = sum + d;

                    } else {
                        sum = sum - d;
                    }

                    if (sum == 7) {
                        result = String.valueOf(a) + aKigou + String.valueOf(b) + aKigou1 + String.valueOf(c) + aKigou2 + String.valueOf(d);
                        break;
                    }

                }
                if (sum == 7) {
                    break;
                }
            }
            if (sum == 7) {
                break;
            }
        }

        result += "=7";
        System.out.println(result);

    }
}