import java.util.Scanner;

public class Main {
	private static int[] a = new int[4];
	private static String[] op = new String[3];

	public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	}
} import java.util.Scanner; Scanner java.util public class Main {
	private static int[] a = new int[4];
	private static String[] op = new String[3];

	public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	}
} Main private static int[] a = new int[4]; a new int[4] 4 private static String[] op = new String[3]; op new String[3] 3 public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	} dfs {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	} if(i==4) {
			return sum == 7;
		} i==4 i 4 {
			return sum == 7;
		} return sum == 7; sum == 7 sum 7 if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		} dfs(i+1, sum + a[i]) dfs i+1 i 1 sum + a[i] sum a[i] a i {
			op[i-1] = "+";
			return true;
		} op[i-1] = "+" op[i-1] op i-1 i 1 "+" return true; true if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		} dfs(i+1, sum-a[i]) dfs i+1 i 1 sum-a[i] sum a[i] a i {
			op[i-1] = "-";
			return true;
		} op[i-1] = "-" op[i-1] op i-1 i 1 "-" return true; true return false; false int i i int sum sum public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		} int i=3; int i=3; i 3 i>=0 i 0 i-- i-- i {
			a[i] = n%10;
			n/=10;
		} {
			a[i] = n%10;
			n/=10;
		} a[i] = n%10 a[i] a i n%10 n 10 n/=10 n 10 if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		} dfs(1,a[0]) dfs 1 a[0] a 0 {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		} System.out.print(a[0]) System.out.print System.out System System.out a[0] a 0 for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			} int i=1; int i=1; i 1 i<4 i 4 i++ i++ i {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			} {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			} System.out.print(op[i-1]) System.out.print System.out System System.out op[i-1] op i-1 i 1 System.out.print(a[i]) System.out.print System.out System System.out a[i] a i System.out.println("=7") System.out.println System.out System System.out "=7" {
			System.out.println("-1");
		} System.out.println("-1") System.out.println System.out System System.out "-1" String[] args args public class Main {
	private static int[] a = new int[4];
	private static String[] op = new String[3];

	public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	}
} public class Main {
	private static int[] a = new int[4];
	private static String[] op = new String[3];

	public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	}
} Main
import java.util.Scanner;

public class Main {
	private static int[] a = new int[4];
	private static String[] op = new String[3];

	public static boolean dfs(int i, int sum) {
		if(i==4) {
			return sum == 7;
		}
		if(dfs(i+1, sum + a[i])) {
			op[i-1] = "+";
			return true;
		}
		if(dfs(i+1, sum-a[i])) {
			op[i-1] = "-";
			return true;
		}
		return false;
	}

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		sc.close();

		for(int i=3; i>=0; i--) {
			a[i] = n%10;
			n/=10;
		}
		if(dfs(1,a[0])) {
			System.out.print(a[0]);
			for(int i=1; i<4; i++) {
				System.out.print(op[i-1]);
				System.out.print(a[i]);
			}
			System.out.println("=7");
		}else {
			System.out.println("-1");
		}

	}
}
