import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) String[] inputs = scanner.nextLine().split(""); inputs scanner.nextLine().split("") scanner.nextLine().split scanner.nextLine() scanner.nextLine scanner "" int[] nums = new int[4]; nums new int[4] 4 for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		} int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
			nums[i] = Integer.parseInt(inputs[i]);
		} {
			nums[i] = Integer.parseInt(inputs[i]);
		} nums[i] = Integer.parseInt(inputs[i]) nums[i] nums i Integer.parseInt(inputs[i]) Integer.parseInt Integer inputs[i] inputs i int[] masks = {4, 2, 1}; masks {4, 2, 1} 4 2 1 for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		} int opes = 0; int opes = 0; opes 0 opes < 8 opes 8 opes++ opes++ opes {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		} {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		} int result = nums[0]; result nums[0] nums 0 for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			} int opeIndex = 0; int opeIndex = 0; opeIndex 0 opeIndex < 3 opeIndex 3 opeIndex++ opeIndex++ opeIndex {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			} {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			} if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				} (opes & masks[opeIndex]) > 0 (opes & masks[opeIndex]) opes masks[opeIndex] masks opeIndex 0 {
					result += nums[opeIndex + 1];
				} result += nums[opeIndex + 1] result nums[opeIndex + 1] nums opeIndex + 1 opeIndex 1 {
					result -= nums[opeIndex + 1];
				} result -= nums[opeIndex + 1] result nums[opeIndex + 1] nums opeIndex + 1 opeIndex 1 if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			} result == 7 result 7 {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			} String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split(""); operators String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("") String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+") String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-") String.format("%3s", Integer.toBinaryString(opes)).replaceAll String.format("%3s", Integer.toBinaryString(opes)) String.format String "%3s" Integer.toBinaryString(opes) Integer.toBinaryString Integer opes "[ 0]" "-" "1" "+" "" StringBuilder expression = new StringBuilder(); expression new StringBuilder() expression.append(inputs[0]) expression.append expression inputs[0] inputs 0 for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				} {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				} expression
						.append(operators[i])
						.append(inputs[i + 1]) expression
						.append(operators[i])
						.append expression
						.append(operators[i]) expression
						.append expression operators[i] operators i inputs[i + 1] inputs i + 1 i 1 expression
					.append("=7") expression
					.append expression "=7" System.out.println(expression) System.out.println System.out System System.out expression return; String[] args args public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		String[] inputs = scanner.nextLine().split("");
		int[] nums = new int[4];
		for (int i = 0; i < 4; i++) {
			nums[i] = Integer.parseInt(inputs[i]);
		}

		int[] masks = {4, 2, 1};

		for (int opes = 0; opes < 8; opes++) {
			int result = nums[0];
			for (int opeIndex = 0; opeIndex < 3; opeIndex++) {
				if ((opes & masks[opeIndex]) > 0) {
					result += nums[opeIndex + 1];
				} else {
					result -= nums[opeIndex + 1];
				}
			}
			if (result == 7) {
				String[] operators = String.format("%3s", Integer.toBinaryString(opes)).replaceAll("[ 0]", "-").replaceAll("1", "+").split("");
				StringBuilder expression = new StringBuilder();
				expression.append(inputs[0]);
				for (int i = 0; i < 3; i++) {
					expression
						.append(operators[i])
						.append(inputs[i + 1]);
				}
				expression
					.append("=7");
				System.out.println(expression);
				return;
			}
		}
	}
}
