import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = s.charAt(0) - '0', b = s.charAt(1) - '0',
            c = s.charAt(2) - '0', d = s.charAt(3) - '0';
            char p = '+', q = '+', r = '+';

            if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-';
            System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7");
    }
} import java.util.*; util.* java class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = s.charAt(0) - '0', b = s.charAt(1) - '0',
            c = s.charAt(2) - '0', d = s.charAt(3) - '0';
            char p = '+', q = '+', r = '+';

            if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-';
            System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7");
    }
} Main public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = s.charAt(0) - '0', b = s.charAt(1) - '0',
            c = s.charAt(2) - '0', d = s.charAt(3) - '0';
            char p = '+', q = '+', r = '+';

            if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-';
            System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7");
    } main {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = s.charAt(0) - '0', b = s.charAt(1) - '0',
            c = s.charAt(2) - '0', d = s.charAt(3) - '0';
            char p = '+', q = '+', r = '+';

            if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-';
            System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = s.charAt(0) - '0' a s.charAt(0) - '0' s.charAt(0) s.charAt s 0 '0' b = s.charAt(1) - '0' b s.charAt(1) - '0' s.charAt(1) s.charAt s 1 '0' c = s.charAt(2) - '0' c s.charAt(2) - '0' s.charAt(2) s.charAt s 2 '0' d = s.charAt(3) - '0'; d s.charAt(3) - '0' s.charAt(3) s.charAt s 3 '0' char p = '+' p '+' q = '+' q '+' r = '+'; r '+' if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a+b+c+d==7 a+b+c+d c a+b+c+d a b c d 7 p = q = r = '+' p q = r = '+' q r = '+' r '+' if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a+b+c-d==7 a+b+c-d a+b+c a+b+c a b c d 7 { p = q = '+'; r = '-';} p = q = '+' p q = '+' q '+' r = '-' r '-' if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a+b-c+d==7 a+b-c+d a+b-c a+b a b c d 7 { p = r = '+'; q = '-';} p = r = '+' p r = '+' r '+' q = '-' q '-' if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a+b-c-d==7 a+b-c-d a+b-c-d a+b a b c d 7 { p = '+'; q = r = '-';} p = '+' p '+' q = r = '-' q r = '-' r '-' if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a-b+c+d==7 a-b+c+d a-b+c+d a-b a b c d 7 { p = '-'; q = r = '+';} p = '-' p '-' q = r = '+' q r = '+' r '+' if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a-b+c-d==7 a-b+c-d a-b+c a-b a b c d 7 { p = r = '-'; q = '+';} p = r = '-' p r = '-' r '-' q = '+' q '+' if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-'; a-b-c+d==7 a-b-c+d a-b-c a-b-c a b c d 7 { p = q = '-'; r = '+';} p = q = '-' p q = '-' q '-' r = '+' r '+' p = q = r = '-' p q = r = '-' q r = '-' r '-' System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7") System.out.println System.out System System.out a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7" d "" r "" c "" q "" b "" p a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7" a "" p "" b "" q "" c "" r "" d "=7" String[] args args
import java.util.*;
class Main
{
    public static void main (String[] args)
    {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        int a = s.charAt(0) - '0', b = s.charAt(1) - '0',
            c = s.charAt(2) - '0', d = s.charAt(3) - '0';
            char p = '+', q = '+', r = '+';

            if(a+b+c+d==7)       p = q = r = '+';
            else if(a+b+c-d==7){ p = q = '+'; r = '-';}
            else if(a+b-c+d==7){ p = r = '+'; q = '-';}
            else if(a+b-c-d==7){ p = '+'; q = r = '-';}
            else if(a-b+c+d==7){ p = '-'; q = r = '+';}
            else if(a-b+c-d==7){ p = r = '-'; q = '+';}
            else if(a-b-c+d==7){ p = q = '-'; r = '+';}
            else                 p = q = r = '-';
            System.out.println(a + "" + p + "" + b + "" + q + "" + c + "" + r + "" + d + "=7");
    }
}