import java.util.*;
import static java.lang.System.*;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    }
} import java.util.*; util.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    } main {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    } Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int n = cin.nextInt(); n cin.nextInt() cin.nextInt cin int a[] = new int[4]; a new int[4] 4 for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        } int i = 3; int i = 3; i 3 i >= 0 i 0 i-- i-- i {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        } {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        } a[i] = n % (int) Math.pow(10, 4 - i) a[i] a i n % (int) Math.pow(10, 4 - i) n (int) Math.pow(10, 4 - i) Math.pow Math 10 4 - i 4 i a[i] = a[i] / (int) Math.pow(10, 3 - i) a[i] a i a[i] / (int) Math.pow(10, 3 - i) a[i] a i (int) Math.pow(10, 3 - i) Math.pow Math 10 3 - i 3 i for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        } {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        } for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            } {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            } for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                } {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                } int now = a[0]; now a[0] a 0 now += (i == 0 ? a[1] : -a[1]) now (i == 0 ? a[1] : -a[1]) i == 0 i 0 a[1] a 1 -a[1] a[1] a 1 now += (j == 0 ? a[2] : -a[2]) now (j == 0 ? a[2] : -a[2]) j == 0 j 0 a[2] a 2 -a[2] a[2] a 2 now += (k == 0 ? a[3] : -a[3]) now (k == 0 ? a[3] : -a[3]) k == 0 k 0 a[3] a 3 -a[3] a[3] a 3 if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    } now == 7 now 7 {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    } out.print(a[0]) out.print out a[0] a 0 if (i == 0) out.print('+');
                        else out.print('-'); i == 0 i 0 out.print('+') out.print out '+' out.print('-') out.print out '-' out.print(a[1]) out.print out a[1] a 1 if (j == 0) out.print('+');
                        else out.print('-'); j == 0 j 0 out.print('+') out.print out '+' out.print('-') out.print out '-' out.print(a[2]) out.print out a[2] a 2 if (k == 0) out.print('+');
                        else out.print('-'); k == 0 k 0 out.print('+') out.print out '+' out.print('-') out.print out '-' out.println(a[3] + "=7") out.println out a[3] + "=7" a[3] a 3 "=7" return; String[] args args public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    }
} Main
import java.util.*;
import static java.lang.System.*;

public class Main {
    public static void main(String[] args) {
        Scanner cin = new Scanner(System.in);
        int n = cin.nextInt();
        int a[] = new int[4];
        for (int i = 3; i >= 0; i--) {
            a[i] = n % (int) Math.pow(10, 4 - i);
            a[i] = a[i] / (int) Math.pow(10, 3 - i);
            //out.println(a[i]);
        }
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int k = 0; k < 2; k++) {
                    int now = a[0];
                    now += (i == 0 ? a[1] : -a[1]);
                    now += (j == 0 ? a[2] : -a[2]);
                    now += (k == 0 ? a[3] : -a[3]);
                    if (now == 7) {
                        out.print(a[0]);
                        if (i == 0) out.print('+');
                        else out.print('-');
                        out.print(a[1]);
                        if (j == 0) out.print('+');
                        else out.print('-');
                        out.print(a[2]);
                        if (k == 0) out.print('+');
                        else out.print('-');
                        out.println(a[3] + "=7");
                        return;
                    }
                }
            }
        }
    }
}
