import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)

//Map<String, Integer> map = new HashMap<String, Integer>(n);
/*for ( キーのデータ型 key : マップの名前.keySet() ) {
	データのデータ型 data = マップの名前.get( key );
	
	// keyやdataを使った処理;
}*/
//int i = Integer.parseInt(s);

//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")
//list.set(1,"walk");
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	static String s;
	static String g;
	static int a[]=new int[4];
	public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	}
	static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	}
	

	
	
	
} import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	static String s;
	static String g;
	static int a[]=new int[4];
	public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	}
	static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	}
	

	
	
	
} Main private static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static String s; s static String g; g static int a[]=new int[4]; a new int[4] 4 static void p(String ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans String ans ans static void p(int ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans int ans ans static void p(long ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans long ans ans static void p(double ans) {System.out.println(ans);} p {System.out.println(ans);} System.out.println(ans) System.out.println System.out System System.out ans double ans ans public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	} main {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	} String N=sc.next(); N sc.next() sc.next sc for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			a[i]=N.charAt(i)-48;
		} {
			a[i]=N.charAt(i)-48;
		} a[i]=N.charAt(i)-48 a[i] a i N.charAt(i)-48 N.charAt(i) N.charAt N i 48 if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		} dfs(1,a[0],"") dfs 1 a[0] a 0 "" {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		} p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7") p a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7" a[3] "" g.charAt(2) "" a[2] "" g.charAt(1) "" a[1] "" g.charAt(0) a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7" a[0] a 0 "" g.charAt(0) g.charAt g 0 "" a[1] a 1 "" g.charAt(1) g.charAt g 1 "" a[2] a 2 "" g.charAt(2) g.charAt g 2 "" a[3] a 3 "=7" String[] args args static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	} dfs {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	} g=v g v if(b==4)return sum==7; b==4 b 4 return sum==7; sum==7 sum 7 if(dfs(b+1,sum+a[b],v+"+"))return true; dfs(b+1,sum+a[b],v+"+") dfs b+1 b 1 sum+a[b] sum a[b] a b v+"+" v "+" return true; true if(dfs(b+1,sum-a[b],v+"-"))return true; dfs(b+1,sum-a[b],v+"-") dfs b+1 b 1 sum-a[b] sum a[b] a b v+"-" v "-" return true; true return false; false int b b int sum sum String v v public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	static String s;
	static String g;
	static int a[]=new int[4];
	public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	}
	static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	}
	

	
	
	
} public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	static String s;
	static String g;
	static int a[]=new int[4];
	public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	}
	static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	}
	

	
	
	
} Main
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
 

//result = Math.pow(num1, num3)
//StringBuffer str = new StringBuffer(hoge1);
//String hoge2 = str.reverse().toString();
//map.containsKey(A)

//Map<String, Integer> map = new HashMap<String, Integer>(n);
/*for ( キーのデータ型 key : マップの名前.keySet() ) {
	データのデータ型 data = マップの名前.get( key );
	
	// keyやdataを使った処理;
}*/
//int i = Integer.parseInt(s);

//ArrayList<String> cc = new ArrayList<>(n);
//Collections.sort(list);
//Array.sort(list);
//Arrays.asList(c).contains("a")
//list.set(1,"walk");
public class Main {
	private static Scanner sc = new Scanner(System.in);
	static void p(String ans) {System.out.println(ans);};
	static void p(int ans) {System.out.println(ans);};
	static void p(long ans) {System.out.println(ans);};
	static void p(double ans) {System.out.println(ans);};
	static String s;
	static String g;
	static int a[]=new int[4];
	public static void main(String[] args) {
		String N=sc.next();
		for(int i=0;i<4;i++) {
			a[i]=N.charAt(i)-48;
		}
		if(dfs(1,a[0],"")) {
		p(a[0]+""+g.charAt(0)+""+a[1]+""+g.charAt(1)+""+a[2]+""+g.charAt(2)+""+a[3]+"=7");
		}
	}
	static boolean dfs(int b,int sum,String v) {
		g=v;
		if(b==4)return sum==7;
		if(dfs(b+1,sum+a[b],v+"+"))return true;
		if(dfs(b+1,sum-a[b],v+"-"))return true;
		return false;
	}
	

	
	
	
}
