import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    }
} Main public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    } main {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int n = in.nextInt(); n in.nextInt() in.nextInt in int a[] = new int[4]; a new int[4] 4 int m = n; m n for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        } int i = 3; int i = 3; i 3 i >= 0 i 0 i-- i-- i {
            a[i] = m % 10;
            m /= 10;
        } {
            a[i] = m % 10;
            m /= 10;
        } a[i] = m % 10 a[i] a i m % 10 m 10 m /= 10 m 10 int sign = 0; sign 0 for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        } {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        } int calc = a[0]; calc a[0] a 0 for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            } int j = 1; int j = 1; j 1 j < 4 j 4 j++ j++ j {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            } {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            } calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]) calc (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]) ((i >> (j - 1)) & 1) == 0 ((i >> (j - 1)) & 1) (i >> (j - 1)) i (j - 1) j 1 1 0 +a[j] a[j] a j -a[j] a[j] a j if (calc == 7) {
                sign = i;
                break;
            } calc == 7 calc 7 {
                sign = i;
                break;
            } sign = i sign i break; System.out.print(a[0]) System.out.print System.out System System.out a[0] a 0 for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        } int i = 1; int i = 1; i 1 i < 4 i 4 i++ i++ i {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        } {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        } if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            } ((sign >> (i - 1)) & 1) == 0 ((sign >> (i - 1)) & 1) (sign >> (i - 1)) sign (i - 1) i 1 1 0 {
                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[i]) System.out.print System.out System System.out a[i] a i System.out.println("=7") System.out.println System.out System System.out "=7" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    }
} public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int a[] = new int[4];

        int m = n;
        for (int i = 3; i >= 0; i--) {
            a[i] = m % 10;
            m /= 10;
        }

        int sign = 0;
        for (int i = 0; i < 8; i++) {
            int calc = a[0];
            for (int j = 1; j < 4; j++) {
                calc += (((i >> (j - 1)) & 1) == 0 ? +a[j] : -a[j]);

            }

            if (calc == 7) {
                sign = i;
                break;
            }
        }

        System.out.print(a[0]);
        for (int i = 1; i < 4; i++) {
            if (((sign >> (i - 1)) & 1) == 0) {
                System.out.print('+');
            } else {
                System.out.print('-');
            }
            System.out.print(a[i]);
        }
        System.out.println("=7");
    }
}