import java.util.*;
// warm-up
// Missed one pattern
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} import java.util.*; util.* java public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	} solve {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] t = {"000","001","010","011","100","101","110","111"}; t {"000","001","010","011","100","101","110","111"} "000" "001" "010" "011" "100" "101" "110" "111" String tok = sc.next(); tok sc.next() sc.next sc int A = Character.getNumericValue(tok.charAt(0)) A Character.getNumericValue(tok.charAt(0)) Character.getNumericValue Character tok.charAt(0) tok.charAt tok 0 B = Character.getNumericValue(tok.charAt(1)) B Character.getNumericValue(tok.charAt(1)) Character.getNumericValue Character tok.charAt(1) tok.charAt tok 1 C = Character.getNumericValue(tok.charAt(2)) C Character.getNumericValue(tok.charAt(2)) Character.getNumericValue Character tok.charAt(2) tok.charAt tok 2 D = Character.getNumericValue(tok.charAt(3)); D Character.getNumericValue(tok.charAt(3)) Character.getNumericValue Character tok.charAt(3) tok.charAt tok 3 for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		} String e t {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		} {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		} int s = 0; s 0 StringBuilder sb = new StringBuilder(); sb new StringBuilder() s+=e.charAt(0)=='1' ? A+B : A-B s e.charAt(0)=='1' ? A+B : A-B e.charAt(0)=='1' e.charAt(0) e.charAt e 0 '1' A+B A B A-B A B s+=e.charAt(1)=='1' ? C : -C s e.charAt(1)=='1' ? C : -C e.charAt(1)=='1' e.charAt(1) e.charAt e 1 '1' C -C C s+=e.charAt(2)=='1' ? D : -D s e.charAt(2)=='1' ? D : -D e.charAt(2)=='1' e.charAt(2) e.charAt e 2 '1' D -D D if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			} s==7 s 7 {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			} sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D) sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-") sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C) sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-") sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B) sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append sb.append(A).append(e.charAt(0)=='1' ? "+" : "-") sb.append(A).append sb.append(A) sb.append sb A e.charAt(0)=='1' ? "+" : "-" e.charAt(0)=='1' e.charAt(0) e.charAt e 0 '1' "+" "-" B e.charAt(1)=='1' ? "+" : "-" e.charAt(1)=='1' e.charAt(1) e.charAt e 1 '1' "+" "-" C e.charAt(2)=='1' ? "+" : "-" e.charAt(2)=='1' e.charAt(2) e.charAt e 2 '1' "+" "-" D System.out.println(sb+"=7") System.out.println System.out System System.out sb+"=7" sb "=7" System.exit(0) System.exit System 0 sc.close() sc.close sc public static void main(String args[]) {
		solve();
	} main {
		solve();
	} solve() solve String args[] args public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

} Main
import java.util.*;
// warm-up
// Missed one pattern
public class Main {

	static void solve() {
		Scanner sc = new Scanner(System.in);
		String[] t = {"000","001","010","011","100","101","110","111"};
		String tok = sc.next();
		int A = Character.getNumericValue(tok.charAt(0)), 
		B = Character.getNumericValue(tok.charAt(1)),
		C = Character.getNumericValue(tok.charAt(2)),
		D = Character.getNumericValue(tok.charAt(3)); 
		for (String e : t) {
			int s = 0;
			StringBuilder sb = new StringBuilder();
			s+=e.charAt(0)=='1' ? A+B : A-B;
			s+=e.charAt(1)=='1' ? C : -C;
			s+=e.charAt(2)=='1' ? D : -D;
			if (s==7) {
				sb.append(A).append(e.charAt(0)=='1' ? "+" : "-").append(B)
				.append(e.charAt(1)=='1' ? "+" : "-").append(C)
				.append(e.charAt(2)=='1' ? "+" : "-").append(D);
				System.out.println(sb+"=7");
				System.exit(0);
			}
		}
		sc.close();		
	}

	public static void main(String args[]) {
		solve();
	}

}