import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	}
}


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

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	}
} Main public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	} main {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	} Scanner reader = new Scanner(System.in); reader new Scanner(System.in) int N = reader.nextInt(); N reader.nextInt() reader.nextInt reader int a = N / 1000; a N / 1000 N 1000 int b = N % 1000 / 100; b N % 1000 / 100 N % 1000 N 1000 100 int c = N % 100 / 10; c N % 100 / 10 N % 100 N 100 10 int d = N % 10; d N % 10 N 10 String ans = ""; ans "" for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		} {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		} int sum = a; sum a String tmp = "" + a; tmp "" + a "" a if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			} i == 0 i 0 {
				sum += b;
				tmp += "+" + b;
			} sum += b sum b tmp += "+" + b tmp "+" + b "+" b {
				sum -= b;
				tmp += "-" + b;
			} sum -= b sum b tmp += "-" + b tmp "-" + b "-" b for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			} int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			} {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			} String tmp2 = tmp; tmp2 tmp int sum2 = sum; sum2 sum if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				} j == 0 j 0 {
					sum2 += c;
					tmp2 += "+" + c;
				} sum2 += c sum2 c tmp2 += "+" + c tmp2 "+" + c "+" c {
					sum2 -= c;
					tmp2 += "-" + c;
				} sum2 -= c sum2 c tmp2 += "-" + c tmp2 "-" + c "-" c for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				} int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				} {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				} String tmp3 = tmp2; tmp3 tmp2 int sum3 = sum2; sum3 sum2 if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					} k == 0 k 0 {
						sum3 += d;
						tmp3 += "+" + d;
					} sum3 += d sum3 d tmp3 += "+" + d tmp3 "+" + d "+" d {
						sum3 -= d;
						tmp3 += "-" + d;
					} sum3 -= d sum3 d tmp3 += "-" + d tmp3 "-" + d "-" d if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					} sum3 == 7 sum3 7 {
						ans = tmp3 + "=7";
						break;
					} ans = tmp3 + "=7" ans tmp3 + "=7" tmp3 "=7" break; System.out.println(ans) System.out.println System.out System System.out ans reader.close() reader.close reader String[] args args public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	}
} public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner reader = new Scanner(System.in);
		int N = reader.nextInt();
		int a = N / 1000;
		int b = N % 1000 / 100;
		int c = N % 100 / 10;
		int d = N % 10;
		String ans = "";

		for (int i = 0; i < 2; i++) {
			int sum = a;
			String tmp = "" + a;

			if (i == 0) {
				sum += b;
				tmp += "+" + b;
			} else {
				sum -= b;
				tmp += "-" + b;
			}
			for (int j = 0; j < 2; j++) {
				String tmp2 = tmp;
				int sum2 = sum;
				if (j == 0) {
					sum2 += c;
					tmp2 += "+" + c;
				} else {
					sum2 -= c;
					tmp2 += "-" + c;
				}
				for (int k = 0; k < 2; k++) {
					String tmp3 = tmp2;
					int sum3 = sum2;
					if (k == 0) {
						sum3 += d;
						tmp3 += "+" + d;
					} else {
						sum3 -= d;
						tmp3 += "-" + d;
					}
					if (sum3 == 7) {
						ans = tmp3 + "=7";
						break;
					}
				}
			}
		}

		System.out.println(ans);
		reader.close();
	}
}



