import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    } main {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int x = scanner.nextInt(); x scanner.nextInt() scanner.nextInt scanner int A A B B C C D; D D = x % 10 D x % 10 x 10 x = x / 10 x x / 10 x 10 C = x % 10 C x % 10 x 10 x = x / 10 x x / 10 x 10 B = x % 10 B x % 10 x 10 x = x / 10 x x / 10 x 10 A = x A x if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A + B + C + D) == 7 (A + B + C + D) C A + B + C + D A B C D 7 {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } 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" if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A - B + C + D) == 7 (A - B + C + D) A - B + C + D A - B A B C D 7 {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } 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" if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A + B - C + D) == 7 (A + B - C + D) A + B - C A + B A B C D 7 {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } 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" if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A - B - C + D) == 7 (A - B - C + D) A - B - C A - B - C A B C D 7 {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } 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" if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A + B + C - D) == 7 (A + B + C - D) A + B + C A + B + C A B C D 7 {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } 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" if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A - B + C - D) == 7 (A - B + C - D) A - B + C A - B A B C D 7 {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } 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" if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A + B - C - D) == 7 (A + B - C - D) A + B - C - D A + B A B C D 7 {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } 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" if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } (A - B - C - D) == 7 (A - B - C - D) C A - B - C - D A B C D 7 {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        } 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" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        int x = scanner.nextInt();
        int A, B, C, D;
        D = x % 10;
        x = x / 10;
        C = x % 10;
        x = x / 10;
        B = x % 10;
        x = x / 10;
        A = x;

        if ((A + B + C + D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D + "=7");
        } else if ((A - B + C + D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D + "=7");
        } else if ((A + B - C + D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D + "=7");
        } else if ((A - B - C + D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D + "=7");
        } else if ((A + B + C - D) == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D + "=7");
        } else if ((A - B + C - D) == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D + "=7");
        } else if ((A + B - C - D) == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D + "=7");
        } else if ((A - B - C - D) == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D + "=7");
        }
    }
}
