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

public class Main {
    public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    }
} Main public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    } main {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    } String S; S try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        } {
            S = sc.next();
        } Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) S = sc.next() S sc.next() sc.next sc char[] carr = S.toCharArray(); carr S.toCharArray() S.toCharArray S int bitSign = 0; bitSign 0 while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        } bitSign < 8 bitSign 8 {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        } int sign1 = (bitSign >>> 2) & 0x1; sign1 (bitSign >>> 2) & 0x1 (bitSign >>> 2) bitSign 2 0x1 int sign2 = (bitSign >>> 1) & 0x1; sign2 (bitSign >>> 1) & 0x1 (bitSign >>> 1) bitSign 1 0x1 int sign3 = bitSign & 0x1; sign3 bitSign & 0x1 bitSign 0x1 int result = 0; result 0 result += (carr[0] - 48) result (carr[0] - 48) carr[0] carr 0 48 result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48)) result ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48)) (sign1 == 0) sign1 0 (carr[1] - 48) carr[1] carr 1 48 -(carr[1] - 48) (carr[1] - 48) carr[1] carr 1 48 result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48)) result ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48)) (sign2 == 0) sign2 0 (carr[2] - 48) carr[2] carr 2 48 -(carr[2] - 48) (carr[2] - 48) carr[2] carr 2 48 result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48)) result ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48)) (sign3 == 0) sign3 0 (carr[3] - 48) carr[3] carr 3 48 -(carr[3] - 48) (carr[3] - 48) carr[3] carr 3 48 if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            } result == 7 result 7 {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            } char s1 = sign1 == 0 ? '+' : '-'; s1 sign1 == 0 ? '+' : '-' sign1 == 0 sign1 0 '+' '-' char s2 = sign2 == 0 ? '+' : '-'; s2 sign2 == 0 ? '+' : '-' sign2 == 0 sign2 0 '+' '-' char s3 = sign3 == 0 ? '+' : '-'; s3 sign3 == 0 ? '+' : '-' sign3 == 0 sign3 0 '+' '-' StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7") sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]) sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3) sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]) sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append sb.append(carr[0]).append(s1).append(carr[1]).append(s2) sb.append(carr[0]).append(s1).append(carr[1]).append sb.append(carr[0]).append(s1).append(carr[1]) sb.append(carr[0]).append(s1).append sb.append(carr[0]).append(s1) sb.append(carr[0]).append sb.append(carr[0]) sb.append sb carr[0] carr 0 s1 carr[1] carr 1 s2 carr[2] carr 2 s3 carr[3] carr 3 "=7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb return; bitSign++ bitSign String[] args args public class Main {
    public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    }
} public class Main {
    public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {

        String S;

        try (Scanner sc = new Scanner(System.in)) {
            S = sc.next();
        }
        char[] carr = S.toCharArray();
        int bitSign = 0;
        while (bitSign < 8) {
            int sign1 = (bitSign >>> 2) & 0x1;
            int sign2 = (bitSign >>> 1) & 0x1;
            int sign3 = bitSign & 0x1;

            int result = 0;
            result += (carr[0] - 48);
            result += ((sign1 == 0) ? (carr[1] - 48) : -(carr[1] - 48));
            result += ((sign2 == 0) ? (carr[2] - 48) : -(carr[2] - 48));
            result += ((sign3 == 0) ? (carr[3] - 48) : -(carr[3] - 48));
            if (result == 7) {
                char s1 = sign1 == 0 ? '+' : '-';
                char s2 = sign2 == 0 ? '+' : '-';
                char s3 = sign3 == 0 ? '+' : '-';
                StringBuilder sb = new StringBuilder();
                sb.append(carr[0]).append(s1).append(carr[1]).append(s2).append(carr[2]).append(s3).append(carr[3]).append("=7");
                System.out.println(sb.toString());
                return;
            }
            bitSign++;
        }
        //System.out.println(0);
    }
}
