import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 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 scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    }
} Main public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    } main {
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int input = scan.nextInt(); input scan.nextInt() scan.nextInt scan int A A B B C C D D a a b b c c d d e e f f g g h; h D = input % 10 D input % 10 input 10 input /= 10 input 10 C = input % 10 C input % 10 input 10 input /= 10 input 10 B = input % 10 B input % 10 input 10 input /= 10 input 10 A = input % 10 A input % 10 input 10 input /= 10 input 10 a = A + B + C + D a A + B + C + D C A + B + C + D A B C D b = A - B + C + D b A - B + C + D A - B + C + D A - B A B C D c = A + B - C + D c A + B - C + D A + B - C A + B A B C D d = A + B + C - D d A + B + C - D A + B + C A + B + C A B C D e = A - B - C + D e A - B - C + D A - B - C A - B - C A B C D f = A + B - C - D f A + B - C - D A + B - C - D A + B A B C D g = A - B + C - D g A - B + C - D A - B + C A - B A B C D h = A - B - C - D h A - B - C - D C A - B - C - D A B C D if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } a == 7 a 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 (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } b == 7 b 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 (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } c == 7 c 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 (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } d == 7 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 (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } e == 7 e 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 (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } f == 7 f 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 (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } g == 7 g 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 (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        } h == 7 h 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 scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int input = scan.nextInt();
        int A, B, C, D, a, b, c, d, e, f, g,h;

        D = input % 10;
        input /= 10;
        C = input % 10;
        input /= 10;
        B = input % 10;
        input /= 10;
        A = input % 10;
        input /= 10;

        a = A + B + C + D;
        b = A - B + C + D;
        c = A + B - C + D;
        d = A + B + C - D;
        e = A - B - C + D;
        f = A + B - C - D;
        g = A - B + C - D;
        h = A - B - C - D;

        if (a == 7) {
            System.out.println(A + "+" + B + "+" + C + "+" + D +"=7");
        } else if (b == 7) {
            System.out.println(A + "-" + B + "+" + C + "+" + D +"=7");
        } else if (c == 7) {
            System.out.println(A + "+" + B + "-" + C + "+" + D+"=7");
        } else if (d == 7) {
            System.out.println(A + "+" + B + "+" + C + "-" + D+"=7");
        } else if (e == 7) {
            System.out.println(A + "-" + B + "-" + C + "+" + D+"=7");
        } else if (f == 7) {
            System.out.println(A + "+" + B + "-" + C + "-" + D+"=7");
        } else if (g == 7) {
            System.out.println(A + "-" + B + "+" + C + "-" + D+"=7");
        }else if (h == 7) {
            System.out.println(A + "-" + B + "-" + C + "-" + D+"=7");
        }
    }
}