import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    }
    private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    }
    private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    } main {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc int a = num / 1000; a num / 1000 num 1000 num = num - a * 1000 num num - a * 1000 num a * 1000 a 1000 int b = num / 100; b num / 100 num 100 num = num - b * 100 num num - b * 100 num b * 100 b 100 int c = num / 10; c num / 10 num 10 int d = num % 10; d num % 10 num 10 int sum = a; sum a for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        } {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        } if(i == 0) sum += b;
            else sum -= b; i == 0 i 0 sum += b sum b sum -= b sum b for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            } {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            } int temp1 = sum; temp1 sum if(j == 0) sum += c;
                else sum -= c; j == 0 j 0 sum += c sum c sum -= c sum c for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                } {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                } int temp2 = sum; temp2 sum if(k == 0) sum += d;
                    else sum -= d; k == 0 k 0 sum += d sum d sum -= d sum d if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    } sum == 7 sum 7 {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    } System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7") System.out.println System.out System System.out a + toString(i) + b + toString(j) + c + toString(k) + d + "=7" d toString(k) c toString(j) b a + toString(i) + b + toString(j) + c + toString(k) + d + "=7" a toString(i) toString i b toString(j) toString j c toString(k) toString k d "=7" return; sum = temp2 sum temp2 sum = temp1 sum temp1 sum = a sum a return; String[] args args private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    } toString {
        if(n == 0) return "+";
        else return "-";
    } if(n == 0) return "+";
        else return "-"; n == 0 n 0 return "+"; "+" return "-"; "-" int n n public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    }
    private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    }
    private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int num = sc.nextInt();
        int a = num / 1000;
        num = num - a * 1000;
        int b = num / 100;
        num = num - b * 100;
        int c = num / 10;
        int d = num % 10;
        int sum = a;
        for(int i = 0; i < 2; i++) {
            if(i == 0) sum += b;
            else sum -= b;
            for(int j = 0; j < 2; j++) {
                int temp1 = sum;
                if(j == 0) sum += c;
                else sum -= c;
                for(int k = 0; k < 2; k++) {
                    int temp2 = sum;
                    if(k == 0) sum += d;
                    else sum -= d;
                    if(sum == 7) {
                        System.out.println(a + toString(i) + b + toString(j) + c + toString(k) + d + "=7");
                        return;
                    }
                    sum = temp2;
                }
                sum = temp1;
            }
            sum = a;
        }
        return;
    }
    private static String toString(int n) {
        if(n == 0) return "+";
        else return "-";
    }
}
