import java.util.Scanner;

public class Main {
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    }
} Main public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int d = x % 10; d x % 10 x 10 x /= 10 x 10 int c = x % 10; c x % 10 x 10 x /= 10 x 10 int b = x % 10; b x % 10 x 10 x /= 10 x 10 int a = x % 10; a x % 10 x 10 int y; y while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        } true {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        } y = a + b + c + d y a + b + c + d c a + b + c + d a b c d if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            } System.out.println(a + "+" + b + "+" + c + "+" + d + "=7") System.out.println System.out System System.out a + "+" + b + "+" + c + "+" + d + "=7" d "+" c "+" b a + "+" + b + "+" + c + "+" + d + "=7" a "+" b "+" c "+" d "=7" break; y = a + b + c - d y a + b + c - d a + b + c a + b + c a b c d if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            } System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7") System.out.println System.out System System.out a + "+" + b + "+" + c + "-" + d+ "=7" d "-" c "+" b a + "+" + b + "+" + c + "-" + d+ "=7" a "+" b "+" c "-" d "=7" break; y = a + b - c + d y a + b - c + d a + b - c a + b a b c d if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            } System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7") System.out.println System.out System System.out a + "+" + b + "-" + c + "+" + d+ "=7" d "+" c "-" b a + "+" + b + "-" + c + "+" + d+ "=7" a "+" b "-" c "+" d "=7" break; y = a + b - c - d y a + b - c - d a + b - c - d a + b a b c d if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            } System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7") System.out.println System.out System System.out a + "+" + b + "-" + c + "-" + d+ "=7" d "-" c "-" b a + "+" + b + "-" + c + "-" + d+ "=7" a "+" b "-" c "-" d "=7" break; y = a - b + c + d y a - b + c + d a - b + c + d a - b a b c d if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            } System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7") System.out.println System.out System System.out a + "-" + b + "+" + c + "+" + d+ "=7" d "+" c "+" b a + "-" + b + "+" + c + "+" + d+ "=7" a "-" b "+" c "+" d "=7" break; y = a - b + c - d y a - b + c - d a - b + c a - b a b c d if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            } System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7") System.out.println System.out System System.out a + "-" + b + "+" + c + "-" + d+ "=7" d "-" c "+" b a + "-" + b + "+" + c + "-" + d+ "=7" a "-" b "+" c "-" d "=7" break; y = a - b - c + d y a - b - c + d a - b - c a - b - c a b c d if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            } System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7") System.out.println System.out System System.out a + "-" + b + "-" + c + "+" + d+ "=7" d "+" c "-" b a + "-" + b + "-" + c + "+" + d+ "=7" a "-" b "-" c "+" d "=7" break; y = a - b - +c - d y a - b - +c - d +c a - b - +c - d a b +c c d if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            } y == 7 y 7 {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            } System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7") System.out.println System.out System System.out a + "-" + b + "-" + c + "-" + d+ "=7" d "-" c "-" b a + "-" + b + "-" + c + "-" + d+ "=7" a "-" b "-" c "-" d "=7" break; String args[] args public class Main {
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    }
} public class Main {
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String args[])
    {
        Scanner scan = new Scanner(System.in);
        int x = scan.nextInt();
        int d = x % 10;
        x /= 10;
        int c = x % 10;
        x /= 10;
        int b = x % 10;
        x /= 10;
        int a = x % 10;

        int y;
        while (true) {
            y = a + b + c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "+" + d + "=7");
                break;
            }
            y = a + b + c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a + b - c + d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a + b - c - d;
            if (y == 7) {
                System.out.println(a + "+" + b + "-" + c + "-" + d+ "=7");
                break;
            }
            y = a - b + c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "+" + d+ "=7");
                break;
            }
            y = a - b + c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "+" + c + "-" + d+ "=7");
                break;
            }
            y = a - b - c + d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "+" + d+ "=7");
                break;
            }
            y = a - b - +c - d;
            if (y == 7) {
                System.out.println(a + "-" + b + "-" + c + "-" + d+ "=7");
                break;
            }
        }
    }
}
