import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String in = sc.nextLine(); in sc.nextLine() sc.nextLine sc int a = in.codePointAt(0) - '0'; a in.codePointAt(0) - '0' in.codePointAt(0) in.codePointAt in 0 '0' int b = in.codePointAt(1) - '0'; b in.codePointAt(1) - '0' in.codePointAt(1) in.codePointAt in 1 '0' int c = in.codePointAt(2) - '0'; c in.codePointAt(2) - '0' in.codePointAt(2) in.codePointAt in 2 '0' int d = in.codePointAt(3) - '0'; d in.codePointAt(3) - '0' in.codePointAt(3) in.codePointAt in 3 '0' for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        } {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        } int result = a; result a result += ((i & 0x01) != 0) ? b : -b result ((i & 0x01) != 0) ? b : -b ((i & 0x01) != 0) (i & 0x01) i 0x01 0 b -b b result += ((i & 0x02) != 0) ? c : -c result ((i & 0x02) != 0) ? c : -c ((i & 0x02) != 0) (i & 0x02) i 0x02 0 c -c c result += ((i & 0x04) != 0) ? d : -d result ((i & 0x04) != 0) ? d : -d ((i & 0x04) != 0) (i & 0x04) i 0x04 0 d -d d if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            } result == 7 result 7 {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            } System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d)) System.out.println System.out System System.out String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d) String.format String "%d%c%d%c%d%c%d=7" a ((i & 0x01) != 0) ? '+' : '-' ((i & 0x01) != 0) (i & 0x01) i 0x01 0 '+' '-' b ((i & 0x02) != 0) ? '+' : '-' ((i & 0x02) != 0) (i & 0x02) i 0x02 0 '+' '-' c ((i & 0x04) != 0) ? '+' : '-' ((i & 0x04) != 0) (i & 0x04) i 0x04 0 '+' '-' d System.exit(0) System.exit System 0 String[] args args public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    }
} public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String in = sc.nextLine();
        int a = in.codePointAt(0) - '0';
        int b = in.codePointAt(1) - '0';
        int c = in.codePointAt(2) - '0';
        int d = in.codePointAt(3) - '0';

        for (int i = 0; i < 8; i++) {
            int result = a;
            result += ((i & 0x01) != 0) ? b : -b ;
            result += ((i & 0x02) != 0) ? c : -c ;
            result += ((i & 0x04) != 0) ? d : -d ;
            if (result == 7) {
                System.out.println(String.format("%d%c%d%c%d%c%d=7",a,((i & 0x01) != 0) ? '+' : '-',b,((i & 0x02) != 0) ? '+' : '-',c,((i & 0x04) != 0) ? '+' : '-',d));
                System.exit(0);
            }
        }
    }
}
