import java.util.*;

public class Main {
    static String[] s;
    static int[] a;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    }
}
 import java.util.*; util.* java public class Main {
    static String[] s;
    static int[] a;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    }
} Main static String[] s; s static int[] a; a public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = new int[4] a new int[4] 4 s = new String[4] s new String[4] 4 s = sc.next().split("") s sc.next().split("") sc.next().split sc.next() sc.next sc "" for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        } int i = 0; int i = 0; i 0 i < s.length i s.length s s.length i++ i++ i {
            a[i] = Integer.parseInt(s[i]);
        } {
            a[i] = Integer.parseInt(s[i]);
        } a[i] = Integer.parseInt(s[i]) a[i] a i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        } int i = 0; int i = 0; i 0 i < (1 << 3) i (1 << 3) 1 3 i++ i++ i {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        } {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        } int tmp = a[0]; tmp a[0] a 0 for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            } {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            } if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                } (1 & i >> j) == 1 (1 & i >> j) 1 i >> j i j 1 {
                    tmp += a[j + 1];
                } tmp += a[j + 1] tmp a[j + 1] a j + 1 j 1 {
                    tmp -= a[j + 1];
                } tmp -= a[j + 1] tmp a[j + 1] a j + 1 j 1 if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            } tmp == 7 tmp 7 {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            } System.out.print(s[0]) System.out.print System.out System System.out s[0] s 0 for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                } {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                } if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    } (1 & i >> j) == 1 (1 & i >> j) 1 i >> j i j 1 {
                        System.out.print("+");
                    } System.out.print("+") System.out.print System.out System System.out "+" {
                        System.out.print("-");
                    } System.out.print("-") System.out.print System.out System System.out "-" System.out.print(a[j + 1]) System.out.print System.out System System.out a[j + 1] a j + 1 j 1 System.out.println("=7") System.out.println System.out System System.out "=7" return; String[] args args public class Main {
    static String[] s;
    static int[] a;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    }
} public class Main {
    static String[] s;
    static int[] a;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    }
} Main
import java.util.*;

public class Main {
    static String[] s;
    static int[] a;

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        a = new int[4];
        s = new String[4];
        s = sc.next().split("");

        for (int i = 0; i < s.length; i++) {
            a[i] = Integer.parseInt(s[i]);
        }
        //bit全探索 2**3
        for (int i = 0; i < (1 << 3); i++) {

            int tmp = a[0];
            for (int j = 0; j < 3; j++) {
                if ((1 & i >> j) == 1) {
                    tmp += a[j + 1];
                } else {
                    tmp -= a[j + 1];
                }
            }
            if (tmp == 7) {
                System.out.print(s[0]);
                for (int j = 0; j < 3; j++) {
                    if ((1 & i >> j) == 1) {
                        System.out.print("+");
                    } else {
                        System.out.print("-");
                    }
                    System.out.print(a[j + 1]);
                }
                System.out.println("=7");
                return;
            }
        }
    }
}

