import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    } main {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int abcd = sc.nextInt(); abcd sc.nextInt() sc.nextInt sc int tmp = abcd; tmp abcd int a = tmp / 1000; a tmp / 1000 tmp 1000 int b = (tmp / 100) % 10; b (tmp / 100) % 10 (tmp / 100) tmp 100 10 int c = (tmp / 10) % 10; c (tmp / 10) % 10 (tmp / 10) tmp 10 10 int d = (tmp) % 10; d (tmp) % 10 (tmp) 10 boolean finish; finish String ans = "aa"; ans "aa" if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        } 7 == a + b + c + d 7 a + b + c + d c a + b + c + d a b c d {
            ans = a + "+" + b + "+" + c + "+" + d;
        } ans = a + "+" + b + "+" + c + "+" + d ans a + "+" + b + "+" + c + "+" + d "+" c "+" b a + "+" + b + "+" + c + "+" + d a "+" b "+" c "+" d if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        } 7 == a + b + c - d 7 a + b + c - d a + b + c a + b + c a b c d {
            ans = a + "+" + b + "+" + c + "-" + d;
        } ans = a + "+" + b + "+" + c + "-" + d ans a + "+" + b + "+" + c + "-" + d "-" c "+" b a + "+" + b + "+" + c + "-" + d a "+" b "+" c "-" d if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        } 7 == a + b - c - d 7 a + b - c - d a + b - c - d a + b a b c d {
            ans = a + "+" + b + "-" + c + "-" + d;
        } ans = a + "+" + b + "-" + c + "-" + d ans a + "+" + b + "-" + c + "-" + d "-" c "-" b a + "+" + b + "-" + c + "-" + d a "+" b "-" c "-" d if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        } 7 == a + b - c + d 7 a + b - c + d a + b - c a + b a b c d {
            ans = a + "+" + b + "-" + c + "+" + d;
        } ans = a + "+" + b + "-" + c + "+" + d ans a + "+" + b + "-" + c + "+" + d "+" c "-" b a + "+" + b + "-" + c + "+" + d a "+" b "-" c "+" d if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        } 7 == a - b + c - d 7 a - b + c - d a - b + c a - b a b c d {
            ans = a + "-" + b + "+" + c + "-" + d;
        } ans = a + "-" + b + "+" + c + "-" + d ans a + "-" + b + "+" + c + "-" + d "-" c "+" b a + "-" + b + "+" + c + "-" + d a "-" b "+" c "-" d if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        } 7 == a - b + c + d 7 a - b + c + d a - b + c + d a - b a b c d {
            ans = a + "-" + b + "+" + c + "+" + d;
        } ans = a + "-" + b + "+" + c + "+" + d ans a + "-" + b + "+" + c + "+" + d "+" c "+" b a + "-" + b + "+" + c + "+" + d a "-" b "+" c "+" d if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        } 7 == a - b - c - d 7 a - b - c - d c a - b - c - d a b c d {
            ans = a + "-" + b + "-" + c + "-" + d;
        } ans = a + "-" + b + "-" + c + "-" + d ans a + "-" + b + "-" + c + "-" + d "-" c "-" b a + "-" + b + "-" + c + "-" + d a "-" b "-" c "-" d if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        } 7 == a - b - c + d 7 a - b - c + d a - b - c a - b - c a b c d {
            ans = a + "-" + b + "-" + c + "+" + d;
        } ans = a + "-" + b + "-" + c + "+" + d ans a + "-" + b + "-" + c + "+" + d "+" c "-" b a + "-" + b + "-" + c + "+" + d a "-" b "-" c "+" d System.out.println(ans + "=7") System.out.println System.out System System.out ans + "=7" ans "=7" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int abcd = sc.nextInt();
        int tmp = abcd;
        int a = tmp / 1000;
        int b = (tmp / 100) % 10;
        int c = (tmp / 10) % 10;
        int d = (tmp) % 10;
        boolean finish;
        String ans = "aa";

        if (7 == a + b + c + d) {
            ans = a + "+" + b + "+" + c + "+" + d;
        }
        if (7 == a + b + c - d) {
            ans = a + "+" + b + "+" + c + "-" + d;
        }
        if (7 == a + b - c - d) {
            ans = a + "+" + b + "-" + c + "-" + d;
        }
        if (7 == a + b - c + d) {
            ans = a + "+" + b + "-" + c + "+" + d;
        }
        if (7 == a - b + c - d) {
            ans = a + "-" + b + "+" + c + "-" + d;
        }
        if (7 == a - b + c + d) {
            ans = a + "-" + b + "+" + c + "+" + d;
        }
        if (7 == a - b - c - d) {
            ans = a + "-" + b + "-" + c + "-" + d;
        }
        if (7 == a - b - c + d) {
            ans = a + "-" + b + "-" + c + "+" + d;
        }

        System.out.println(ans + "=7");
    }
}