
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	}
} Main public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	} main {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	} try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		} {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		} Scanner sc = new Scanner(System.in) Scanner sc = new Scanner(System.in) new Scanner(System.in) String str = sc.next(); str sc.next() sc.next sc int a = Integer.parseInt(str.substring(0, 1)); a Integer.parseInt(str.substring(0, 1)) Integer.parseInt Integer str.substring(0, 1) str.substring str 0 1 int b = Integer.parseInt(str.substring(1, 2)); b Integer.parseInt(str.substring(1, 2)) Integer.parseInt Integer str.substring(1, 2) str.substring str 1 2 int c = Integer.parseInt(str.substring(2, 3)); c Integer.parseInt(str.substring(2, 3)) Integer.parseInt Integer str.substring(2, 3) str.substring str 2 3 int d = Integer.parseInt(str.substring(3, 4)); d Integer.parseInt(str.substring(3, 4)) Integer.parseInt Integer str.substring(3, 4) str.substring str 3 4 String ans = null; ans null for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			} {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			} int tmp = a; tmp a StringBuilder sb = new StringBuilder(String.valueOf(a)); sb new StringBuilder(String.valueOf(a)) if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				} (i & (1 << 0)) == 0 (i & (1 << 0)) i (1 << 0) 1 0 0 {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} tmp += b tmp b sb.append("+") sb.append sb "+" sb.append(String.valueOf(b)) sb.append sb String.valueOf(b) String.valueOf String b {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				} tmp -= b tmp b sb.append("-") sb.append sb "-" sb.append(String.valueOf(b)) sb.append sb String.valueOf(b) String.valueOf String b if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				} (i & (1 << 1)) == 0 (i & (1 << 1)) i (1 << 1) 1 1 0 {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} tmp += c tmp c sb.append("+") sb.append sb "+" sb.append(String.valueOf(c)) sb.append sb String.valueOf(c) String.valueOf String c {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				} tmp -= c tmp c sb.append("-") sb.append sb "-" sb.append(String.valueOf(c)) sb.append sb String.valueOf(c) String.valueOf String c if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				} (i & (1 << 2)) == 0 (i & (1 << 2)) i (1 << 2) 1 2 0 {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} tmp += d tmp d sb.append("+") sb.append sb "+" sb.append(String.valueOf(d)) sb.append sb String.valueOf(d) String.valueOf String d {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				} tmp -= d tmp d sb.append("-") sb.append sb "-" sb.append(String.valueOf(d)) sb.append sb String.valueOf(d) String.valueOf String d if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				} tmp == 7 tmp 7 {
					sb.append("=7");
					ans = sb.toString();
					break;
				} sb.append("=7") sb.append sb "=7" ans = sb.toString() ans sb.toString() sb.toString sb break; System.out.println(ans) System.out.println System.out System System.out ans String[] args args public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	}
} public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			String str = sc.next();
			int a = Integer.parseInt(str.substring(0, 1));
			int b = Integer.parseInt(str.substring(1, 2));
			int c = Integer.parseInt(str.substring(2, 3));
			int d = Integer.parseInt(str.substring(3, 4));
			String ans = null;
			for (int i = 0; i < 8; i++) {
				int tmp = a;
				StringBuilder sb = new StringBuilder(String.valueOf(a));
				if ((i & (1 << 0)) == 0) {
					tmp += b;
					sb.append("+");
					sb.append(String.valueOf(b));
				} else {
					tmp -= b;
					sb.append("-");
					sb.append(String.valueOf(b));
				}
				if ((i & (1 << 1)) == 0) {
					tmp += c;
					sb.append("+");
					sb.append(String.valueOf(c));
				} else {
					tmp -= c;
					sb.append("-");
					sb.append(String.valueOf(c));
				}
				if ((i & (1 << 2)) == 0) {
					tmp += d;
					sb.append("+");
					sb.append(String.valueOf(d));
				} else {
					tmp -= d;
					sb.append("-");
					sb.append(String.valueOf(d));
				}
				if (tmp == 7) {
					sb.append("=7");
					ans = sb.toString();
					break;
				}
			}
			System.out.println(ans);
		}
	}
}