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