import java.util.*;

public class Main {
    public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    }
} import java.util.*; util.* java public class Main {
    public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    }
} Main public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    } f {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    } if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return ""; i == 4 && sum == 7 i == 4 i 4 sum == 7 sum 7 return ans + "=7"; ans + "=7" ans "=7" if (i == 4) return ""; i == 4 i 4 return ""; "" String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + "")); ans1 f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + "")) f s i + 1 i 1 ans + "-" + s[i] ans + "-" + s[i] ans "-" s[i] s i sum - Integer.parseInt(s[i] + "") sum Integer.parseInt(s[i] + "") Integer.parseInt Integer s[i] + "" s[i] s i "" String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + "")); ans2 f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + "")) f s i + 1 i 1 ans + "+" + s[i] ans + "+" + s[i] ans "+" s[i] s i sum + Integer.parseInt(s[i] + "") sum Integer.parseInt(s[i] + "") Integer.parseInt Integer s[i] + "" s[i] s i "" if (ans1.length() >= ans2.length()) return ans1; ans1.length() >= ans2.length() ans1.length() ans1.length ans1 ans2.length() ans2.length ans2 return ans1; ans1 return ans2; ans2 char[] s s int i i String ans ans int sum sum public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    } main {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) char s[] = scan.next().toCharArray(); s scan.next().toCharArray() scan.next().toCharArray scan.next() scan.next scan System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + ""))) System.out.println System.out System System.out f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")) f s 1 s[0] + "" s[0] s 0 "" Integer.parseInt(s[0] + "") Integer.parseInt Integer s[0] + "" s[0] s 0 "" String[] args args public class Main {
    public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    }
} public class Main {
    public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    }
} Main
import java.util.*;

public class Main {
    public static String f(char[] s, int i, String ans, int sum) {
        if (i == 4 && sum == 7) return ans + "=7";
        else if (i == 4) return "";
        String ans1 = f(s, i + 1, ans + "-" + s[i], sum - Integer.parseInt(s[i] + ""));
        String ans2 = f(s, i + 1, ans + "+" + s[i], sum + Integer.parseInt(s[i] + ""));
        if (ans1.length() >= ans2.length()) return ans1;
        return ans2;
    }

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        char s[] = scan.next().toCharArray();
        System.out.println(f(s, 1, s[0] + "", Integer.parseInt(s[0] + "")));
    }
}
