
import java.util.*;

public class Main {
	static int num[] = new int[4];
	static String str = new String();
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	}
	
	static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	}
} import java.util.*; util.* java public class Main {
	static int num[] = new int[4];
	static String str = new String();
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	}
	
	static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	}
} Main static int num[] = new int[4]; num new int[4] 4 static String str = new String(); str new String() public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	} main {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc char c[] = s.toCharArray(); c s.toCharArray() s.toCharArray s for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		} int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
			num[i] = c[i]-'0';
		} {
			num[i] = c[i]-'0';
		} num[i] = c[i]-'0' num[i] num i c[i]-'0' c[i] c i '0' calc(0,num[0],String.valueOf(num[0])) calc 0 num[0] num 0 String.valueOf(num[0]) String.valueOf String num[0] num 0 System.out.println(str + "=7") System.out.println System.out System System.out str + "=7" str "=7" String[] args args static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	} calc {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	} if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		} p==3 p 3 {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		} if(tmp_sum==7) {
				str = tmp_str;
			} tmp_sum==7 tmp_sum 7 {
				str = tmp_str;
			} str = tmp_str str tmp_str return; if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		} p<3 p 3 {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		} calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]) calc p+1 p 1 tmp_sum+num[p+1] tmp_sum num[p+1] num p+1 p 1 tmp_str+"+"+num[p+1] tmp_str+"+"+num[p+1] tmp_str "+" num[p+1] num p+1 p 1 calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]) calc p+1 p 1 tmp_sum-num[p+1] tmp_sum num[p+1] num p+1 p 1 tmp_str+"-"+num[p+1] tmp_str+"-"+num[p+1] tmp_str "-" num[p+1] num p+1 p 1 int p p int tmp_sum tmp_sum String tmp_str tmp_str public class Main {
	static int num[] = new int[4];
	static String str = new String();
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	}
	
	static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	}
} public class Main {
	static int num[] = new int[4];
	static String str = new String();
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	}
	
	static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	}
} Main

import java.util.*;

public class Main {
	static int num[] = new int[4];
	static String str = new String();
	
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String s = sc.next();
		char c[] = s.toCharArray();
		
		for(int i=0;i<4;i++) {
			num[i] = c[i]-'0';
		}
		
		calc(0,num[0],String.valueOf(num[0]));
		System.out.println(str + "=7");
	}
	
	static void calc(int p, int tmp_sum, String tmp_str) {
		if(p==3) {
			if(tmp_sum==7) {
				str = tmp_str;
			}	
			return;
		}
		
		if(p<3) {
			calc(p+1,tmp_sum+num[p+1],tmp_str+"+"+num[p+1]);
			calc(p+1,tmp_sum-num[p+1],tmp_str+"-"+num[p+1]);
		}
			
	}
}
