import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	} main {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) StringBuilder sb = new StringBuilder(); sb new StringBuilder() int[] a = new int[4]; a new int[4] 4 char[] c = sc.next().toCharArray(); c sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			a[i] =Character.getNumericValue(c[i]);
		} {
			a[i] =Character.getNumericValue(c[i]);
		} a[i] =Character.getNumericValue(c[i]) a[i] a i Character.getNumericValue(c[i]) Character.getNumericValue Character c[i] c i int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } }; op { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } } { 1, 1, 1 } 1 1 1 { 1, 1, -1 } 1 1 -1 1 { 1, -1, 1 } 1 -1 1 1 { -1, 1, 1 } -1 1 1 1 { 1, -1, -1 } 1 -1 1 -1 1 { -1, 1, -1 } -1 1 1 -1 1 { -1, -1, 1 } -1 1 -1 1 1 { -1, -1, -1 } -1 1 -1 1 -1 1 String str = ""; str "" for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		} {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		} if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			} a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7 a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] a[2] * op[i][1] a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] a[0] a 0 a[1] * op[i][0] a[1] a 1 op[i][0] op[i] op i 0 a[2] * op[i][1] a[2] a 2 op[i][1] op[i] op i 1 a[3] * op[i][2] a[3] a 3 op[i][2] op[i] op i 2 7 {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			} str += a[0] str a[0] a 0 for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				} {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				} if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					} op[i][j] == 1 op[i][j] op[i] op i j 1 {
						str += "+" + a[j + 1];
					} str += "+" + a[j + 1] str "+" + a[j + 1] "+" a[j + 1] a j + 1 j 1 {
						str += "-" + a[j + 1];
					} str += "-" + a[j + 1] str "-" + a[j + 1] "-" a[j + 1] a j + 1 j 1 str += "=7" str "=7" break; System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		StringBuilder sb = new StringBuilder();
		int[] a = new int[4];
		char[] c = sc.next().toCharArray();
		for (int i = 0; i < 4; i++) {
			a[i] =Character.getNumericValue(c[i]);
		}
		int[][] op = { { 1, 1, 1 }, { 1, 1, -1 }, { 1, -1, 1 }, { -1, 1, 1 }, { 1, -1, -1 }, { -1, 1, -1 },
				{ -1, -1, 1 },
				{ -1, -1, -1 } };
		String str = "";
		for (int i = 0; i < 8; i++) {
			if (a[0] + a[1] * op[i][0] + a[2] * op[i][1] + a[3] * op[i][2] == 7) {
				str += a[0];
				for (int j = 0; j < 3; j++) {
					if (op[i][j] == 1) {
						str += "+" + a[j + 1];
					} else {
						str += "-" + a[j + 1];
					}
				}
				str += "=7";
				break;
			}
		}
		System.out.println(str);
	}
}
