public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    }
} Main private static java.util.Scanner scanner = new java.util.Scanner(System.in); scanner new java.util.Scanner(System.in) public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    } main {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    } scanner.useDelimiter("") scanner.useDelimiter scanner "" int a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner c = scanner.nextInt() c scanner.nextInt() scanner.nextInt scanner d = scanner.nextInt(); d scanner.nextInt() scanner.nextInt scanner if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a + b + c + d == 7 a + b + c + d c a + b + c + d a b c d 7 System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d+%d+%d+%d=7\n" a b c d if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a + b + c - d == 7 a + b + c - d a + b + c a + b + c a b c d 7 System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d+%d+%d-%d=7\n" a b c d if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a + b - c + d == 7 a + b - c + d a + b - c a + b a b c d 7 System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d+%d-%d+%d=7\n" a b c d if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a + b - c - d == 7 a + b - c - d a + b - c - d a + b a b c d 7 System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d+%d-%d-%d=7\n" a b c d if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a - b + c + d == 7 a - b + c + d a - b + c + d a - b a b c d 7 System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d-%d+%d+%d=7\n" a b c d if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a - b + c - d == 7 a - b + c - d a - b + c a - b a b c d 7 System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d-%d+%d-%d=7\n" a b c d if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a - b - c + d == 7 a - b - c + d a - b - c a - b - c a b c d 7 System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d-%d-%d+%d=7\n" a b c d if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d); a - b - c - d == 7 a - b - c - d c a - b - c - d a b c d 7 System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d) System.out.printf System.out System System.out "%d-%d-%d-%d=7\n" a b c d String[] args args public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    }
} public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    }
} Main
public class Main {
    private static java.util.Scanner scanner = new java.util.Scanner(System.in);

    public static void main(String[] args) {
        scanner.useDelimiter("");
        int a = scanner.nextInt(), b = scanner.nextInt(), c = scanner.nextInt(), d = scanner.nextInt();
        if (a + b + c + d == 7) System.out.printf("%d+%d+%d+%d=7\n", a, b, c, d);
        else if (a + b + c - d == 7) System.out.printf("%d+%d+%d-%d=7\n", a, b, c, d);
        else if (a + b - c + d == 7) System.out.printf("%d+%d-%d+%d=7\n", a, b, c, d);
        else if (a + b - c - d == 7) System.out.printf("%d+%d-%d-%d=7\n", a, b, c, d);
        else if (a - b + c + d == 7) System.out.printf("%d-%d+%d+%d=7\n", a, b, c, d);
        else if (a - b + c - d == 7) System.out.printf("%d-%d+%d-%d=7\n", a, b, c, d);
        else if (a - b - c + d == 7) System.out.printf("%d-%d-%d+%d=7\n", a, b, c, d);
        else if (a - b - c - d == 7) System.out.printf("%d-%d-%d-%d=7\n", a, b, c, d);
    }
}