import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.function.LongSupplier;

public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.function.LongSupplier; LongSupplier java.util.function public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String str[] = line.split(""); str line.split("") line.split line "" int n = str.length; n str.length str str.length int num[] = new int[n]; num new int[n] n for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			num[i] = Integer.parseInt(str[i]);
		} {
			num[i] = Integer.parseInt(str[i]);
		} num[i] = Integer.parseInt(str[i]) num[i] num i Integer.parseInt(str[i]) Integer.parseInt Integer str[i] str i ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>(); list new ArrayList<ArrayList<String>>() for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		} int bit = 0; int bit = 0; bit 0 bit < (1 << (n - 1)) bit (1 << (n - 1)) 1 (n - 1) n 1 bit++ bit++ bit {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		} {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		} list.add(new ArrayList<String>()) list.add list new ArrayList<String>() for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			} int i = 0; int i = 0; i 0 i < n - 1 i n - 1 n 1 i++ i++ i {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			} {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			} if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				} (bit & (1 << i)) != 0 (bit & (1 << i)) bit (1 << i) 1 i 0 {
					list.get(bit).add("+");
				} list.get(bit).add("+") list.get(bit).add list.get(bit) list.get list bit "+" {
					list.get(bit).add("-");
				} list.get(bit).add("-") list.get(bit).add list.get(bit) list.get list bit "-" String ans = ""; ans "" for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		} int i = 0; int i = 0; i 0 i < list.size() i list.size() list.size list i++ i++ i {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		} {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		} int sum = num[0]; sum num[0] num 0 String s = String.valueOf(sum); s String.valueOf(sum) String.valueOf String sum for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			} int j = 0; int j = 0; j 0 j < list.get(i).size() j list.get(i).size() list.get(i).size list.get(i) list.get list i j++ j++ j {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			} {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			} if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				} list.get(i).get(j).equals("+") list.get(i).get(j).equals list.get(i).get(j) list.get(i).get list.get(i) list.get list i j "+" {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} sum += num[j + 1] sum num[j + 1] num j + 1 j 1 s += "+" + String.valueOf(num[j + 1]) s "+" + String.valueOf(num[j + 1]) "+" String.valueOf(num[j + 1]) String.valueOf String num[j + 1] num j + 1 j 1 {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				} sum -= num[j + 1] sum num[j + 1] num j + 1 j 1 s += "-" + String.valueOf(num[j + 1]) s "-" + String.valueOf(num[j + 1]) "-" String.valueOf(num[j + 1]) String.valueOf String num[j + 1] num j + 1 j 1 if (sum == 7) {
				ans = s + "=7";
				break;
			} sum == 7 sum 7 {
				ans = s + "=7";
				break;
			} ans = s + "=7" ans s + "=7" s "=7" 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[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	}
} public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.function.LongSupplier;

public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line = br.readLine();
		String str[] = line.split("");
		int n = str.length;
		int num[] = new int[n];
		for (int i = 0; i < n; i++) {
			num[i] = Integer.parseInt(str[i]);
		}

		ArrayList<ArrayList<String>> list = new ArrayList<ArrayList<String>>();

		for (int bit = 0; bit < (1 << (n - 1)); bit++) {
			list.add(new ArrayList<String>());
			for (int i = 0; i < n - 1; i++) {
				if ((bit & (1 << i)) != 0) {
					list.get(bit).add("+");
				} else {
					list.get(bit).add("-");
				}
			}
		}

		String ans = "";

		for (int i = 0; i < list.size(); i++) {
			int sum = num[0];
			String s = String.valueOf(sum);
			for (int j = 0; j < list.get(i).size(); j++) {
				if (list.get(i).get(j).equals("+")) {
					sum += num[j + 1];
					s += "+" + String.valueOf(num[j + 1]);
				} else {
					sum -= num[j + 1];
					s += "-" + String.valueOf(num[j + 1]);
				}
			}
			if (sum == 7) {
				ans = s + "=7";
				break;
			}
		}
		System.out.println(ans);
	}
}