import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = Integer.parseInt(s.substring(0, 1)); a Integer.parseInt(s.substring(0, 1)) Integer.parseInt Integer s.substring(0, 1) s.substring s 0 1 int b = Integer.parseInt(s.substring(1, 2)); b Integer.parseInt(s.substring(1, 2)) Integer.parseInt Integer s.substring(1, 2) s.substring s 1 2 int c = Integer.parseInt(s.substring(2, 3)); c Integer.parseInt(s.substring(2, 3)) Integer.parseInt Integer s.substring(2, 3) s.substring s 2 3 int d = Integer.parseInt(s.substring(3, 4)); d Integer.parseInt(s.substring(3, 4)) Integer.parseInt Integer s.substring(3, 4) s.substring s 3 4 String aSign = ""; aSign "" String bSign = ""; bSign "" String cSign = ""; cSign "" for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        } int i=0; int i=0; i 0 i<Math.pow(2, 3) i Math.pow(2, 3) Math.pow Math 2 3 i++ i++ i {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        } {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        } for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            } int j=0; int j=0; j 0 j<2 j 2 j++ j++ j {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            } {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            } if(j == 0) aSign = "+";
                else aSign = "-"; j == 0 j 0 aSign = "+" aSign "+" aSign = "-" aSign "-" for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               } int k=0; int k=0; k 0 k<2 k 2 k++ k++ k {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               } {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               } if(k == 0) bSign = "+";
                   else bSign = "-"; k == 0 k 0 bSign = "+" bSign "+" bSign = "-" bSign "-" for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   } int l=0; int l=0; l 0 l<2 l 2 l++ l++ l {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   } {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   } int total = 0; total 0 if(l == 0) cSign = "+";
                       else cSign = "-"; l == 0 l 0 cSign = "+" cSign "+" cSign = "-" cSign "-" if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       } "+".equals(aSign) "+".equals "+" aSign {
                           total = a + b;
                       } total = a + b total a + b a b {
                           total = a - b;
                       } total = a - b total a - b a b if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       } "+".equals(bSign) "+".equals "+" bSign {
                           total += c;
                       } total += c total c {
                           total -= c;
                       } total -= c total c if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       } "+".equals(cSign) "+".equals "+" cSign {
                           total += d;
                       } total += d total d {
                           total -= d;
                       } total -= d total d if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       } total == 7 total 7 {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       } String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7"; ans Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7" Integer.toString(d) cSign Integer.toString(c) bSign Integer.toString(b) Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7" Integer.toString(a) Integer.toString Integer a aSign Integer.toString(b) Integer.toString Integer b bSign Integer.toString(c) Integer.toString Integer c cSign Integer.toString(d) Integer.toString Integer d "=7" System.out.println(ans) System.out.println System.out System System.out ans return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    }
} Main
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = Integer.parseInt(s.substring(0, 1));
        int b = Integer.parseInt(s.substring(1, 2));
        int c = Integer.parseInt(s.substring(2, 3));
        int d = Integer.parseInt(s.substring(3, 4));
        String aSign = "";
        String bSign = "";
        String cSign = "";
        for(int i=0; i<Math.pow(2, 3); i++) {
            for(int j=0; j<2; j++) {
                if(j == 0) aSign = "+";
                else aSign = "-";
               for(int k=0; k<2; k++) {
                   if(k == 0) bSign = "+";
                   else bSign = "-";
                   for(int l=0; l<2; l++) {
                       int total = 0;
                       if(l == 0) cSign = "+";
                       else cSign = "-";
                       if("+".equals(aSign)) {
                           total = a + b;
                       }
                       else {
                           total = a - b;
                       }
                       if("+".equals(bSign)) {
                           total += c;
                       }
                       else {
                           total -= c;
                       }
                       if("+".equals(cSign)) {
                           total += d;
                       }
                       else {
                           total -= d;
                       }
                       if(total == 7) {
                           String ans = Integer.toString(a)
                                   + aSign
                                   + Integer.toString(b)
                                   + bSign
                                   + Integer.toString(c)
                                   + cSign
                                   + Integer.toString(d)
                                   + "=7";
                           System.out.println(ans);
                           return;
                       }
                   }
               }
            }
        }
    }
}