import java.util.*;
import java.util.function.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    }
} import java.util.*; util.* java import java.util.function.*; function.* java.util import java.math.*; math.* java public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    }
} Main public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    } main {
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    } Scanner s = new Scanner(System.in); s new Scanner(System.in) int ABCD = s.nextInt(); ABCD s.nextInt() s.nextInt s StringBuilder str = new StringBuilder(); str new StringBuilder() StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD)); abcd new StringBuilder(String.format("%04d", ABCD)) for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		} int i = 0; int i = 0; i 0 i < (1<<3) i (1<<3) 1 3 i++ i++ i {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		} {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		} int candidate = ABCD/1000; candidate ABCD/1000 ABCD 1000 int tmp = ABCD; tmp ABCD for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			} {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			} if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				} ((i>>j) & 1) == 1 ((i>>j) & 1) (i>>j) i j 1 1 {
					candidate += tmp%10;
					str.insert(0, "+");
				} candidate += tmp%10 candidate tmp%10 tmp 10 str.insert(0, "+") str.insert str 0 "+" {
					candidate -= tmp%10;
					str.insert(0, "-");
				} candidate -= tmp%10 candidate tmp%10 tmp 10 str.insert(0, "-") str.insert str 0 "-" tmp /= 10 tmp 10 if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			} candidate == 7 candidate 7 {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			} abcd.insert(1, str.charAt(0)) abcd.insert abcd 1 str.charAt(0) str.charAt str 0 abcd.insert(3, str.charAt(1)) abcd.insert abcd 3 str.charAt(1) str.charAt str 1 abcd.insert(5, str.charAt(2)) abcd.insert abcd 5 str.charAt(2) str.charAt str 2 abcd.append("=7") abcd.append abcd "=7" System.out.println(abcd.toString()) System.out.println System.out System System.out abcd.toString() abcd.toString abcd return; str = new StringBuilder() str new StringBuilder() String[] args args public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    }
} public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    }
} Main
import java.util.*;
import java.util.function.*;
import java.math.*;
public class Main {
    public static void main(String[] args){
		Scanner s = new Scanner(System.in);
		int ABCD = s.nextInt();
		
		StringBuilder str = new StringBuilder();
		StringBuilder abcd = new StringBuilder(String.format("%04d", ABCD));
		for(int i = 0; i < (1<<3); i++) {
			int candidate = ABCD/1000;
			int tmp = ABCD;
			for(int j = 0; j < 3; j++) {
				if(((i>>j) & 1) == 1) {
					candidate += tmp%10;
					str.insert(0, "+");
				}else {
					candidate -= tmp%10;
					str.insert(0, "-");
				}
				tmp /= 10;
			}
			if(candidate == 7) {
				abcd.insert(1, str.charAt(0));
				abcd.insert(3, str.charAt(1));
				abcd.insert(5, str.charAt(2));
				abcd.append("=7");
				System.out.println(abcd.toString());
				return;
			}
			str = new StringBuilder();
		}
    }
}
