import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	}

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	}

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

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	} main {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = Integer.parseInt(s.substring(0, 1)); a Integer.parseInt(s.substring(0, 1)) Integer.parseInt Integer s.substring(0, 1) s.substring s 0 1 int b = Integer.parseInt(s.substring(1, 2)); b Integer.parseInt(s.substring(1, 2)) Integer.parseInt Integer s.substring(1, 2) s.substring s 1 2 int c = Integer.parseInt(s.substring(2, 3)); c Integer.parseInt(s.substring(2, 3)) Integer.parseInt Integer s.substring(2, 3) s.substring s 2 3 int d = Integer.parseInt(s.substring(3, 4)); d Integer.parseInt(s.substring(3, 4)) Integer.parseInt Integer s.substring(3, 4) s.substring s 3 4 for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		} int i = 0 ; int i = 0 ; i 0 i < 1 << 3 i 1 << 3 1 3 i++ i++ i {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		} {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		} StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(a) sb.append sb a int result = a; result a if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			} (1 & i) == 1 (1 & i) 1 i 1 {
				sb.append("+");
				result += b;
			} sb.append("+") sb.append sb "+" result += b result b {
				sb.append("-");
				result -= b;
			} sb.append("-") sb.append sb "-" result -= b result b sb.append(b) sb.append sb b if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			} (1 & i >> 1) == 1 (1 & i >> 1) 1 i >> 1 i 1 1 {
				sb.append("+");
				result += c;
			} sb.append("+") sb.append sb "+" result += c result c {
				sb.append("-");
				result -= c;
			} sb.append("-") sb.append sb "-" result -= c result c sb.append(c) sb.append sb c if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			} (1 & i >> 2) == 1 (1 & i >> 2) 1 i >> 2 i 2 1 {
				sb.append("+");
				result += d;
			} sb.append("+") sb.append sb "+" result += d result d {
				sb.append("-");
				result -= d;
			} sb.append("-") sb.append sb "-" result -= d result d sb.append(d) sb.append sb d if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			} result == 7 result 7 {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			} sb.append("=7") sb.append sb "=7" System.out.println(sb.toString()) System.out.println System.out System System.out sb.toString() sb.toString sb sc.close() sc.close sc return; sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.next();
		int a = Integer.parseInt(s.substring(0, 1));
		int b = Integer.parseInt(s.substring(1, 2));
		int c = Integer.parseInt(s.substring(2, 3));
		int d = Integer.parseInt(s.substring(3, 4));

		for(int i = 0 ; i < 1 << 3 ; i++) {
			StringBuilder sb = new StringBuilder();
			sb.append(a);
			int result = a;
			if((1 & i) == 1) {
				sb.append("+");
				result += b;
			} else {
				sb.append("-");
				result -= b;
			}
			sb.append(b);
			if((1 & i >> 1) == 1) {
				sb.append("+");
				result += c;
			} else {
				sb.append("-");
				result -= c;
			}
			sb.append(c);
			if((1 & i >> 2) == 1) {
				sb.append("+");
				result += d;
			} else {
				sb.append("-");
				result -= d;
			}
			sb.append(d);
			if(result == 7) {
				sb.append("=7");
				System.out.println(sb.toString());
				sc.close();
				return;
			}
		}
//		System.out.println();

		sc.close();

	}

}
