import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] ch = sc.next().toCharArray(); ch sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc sc.close() sc.close sc int A = Integer.parseInt(String.valueOf(ch[0])); A Integer.parseInt(String.valueOf(ch[0])) Integer.parseInt Integer String.valueOf(ch[0]) String.valueOf String ch[0] ch 0 int B = Integer.parseInt(String.valueOf(ch[1])); B Integer.parseInt(String.valueOf(ch[1])) Integer.parseInt Integer String.valueOf(ch[1]) String.valueOf String ch[1] ch 1 int C = Integer.parseInt(String.valueOf(ch[2])); C Integer.parseInt(String.valueOf(ch[2])) Integer.parseInt Integer String.valueOf(ch[2]) String.valueOf String ch[2] ch 2 int D = Integer.parseInt(String.valueOf(ch[3])); D Integer.parseInt(String.valueOf(ch[3])) Integer.parseInt Integer String.valueOf(ch[3]) String.valueOf String ch[3] ch 3 char[] op = {'+','-'}; op {'+','-'} '+' '-' int sum = 0; sum 0 for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		} int i = 0; int i = 0; i 0 i < op.length i op.length op op.length i++ i++ i {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		} {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		} for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			} int j = 0; int j = 0; j 0 j < op.length j op.length op op.length j++ j++ j {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			} {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			} for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				} int k = 0; int k = 0; k 0 k < op.length k op.length op op.length k++ k++ k {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				} {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				} if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					} op[i]=='+' op[i] op i '+' {
						sum += A+B;
					} sum += A+B sum A+B A B {
						sum += A-B;
					} sum += A-B sum A-B A B if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					} op[j]=='+' op[j] op j '+' {
						sum += C;
					} sum += C sum C {
						sum -= C;
					} sum -= C sum C if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					} op[k]=='+' op[k] op k '+' {
						sum += D;
					} sum += D sum D {
						sum -=D;
					} sum -=D sum D if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					} sum==7 sum 7 {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					} System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7") System.out.println System.out System System.out A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7" D String.valueOf(op[k]) C String.valueOf(op[j]) B A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7" A String.valueOf(op[i]) String.valueOf String op[i] op i B String.valueOf(op[j]) String.valueOf String op[j] op j C String.valueOf(op[k]) String.valueOf String op[k] op k D "=7" return; sum=0 sum 0 String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	}
} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] ch = sc.next().toCharArray();
		sc.close();
		int A = Integer.parseInt(String.valueOf(ch[0]));
		int B = Integer.parseInt(String.valueOf(ch[1]));
		int C = Integer.parseInt(String.valueOf(ch[2]));
		int D = Integer.parseInt(String.valueOf(ch[3]));
		char[] op = {'+','-'};
		int sum = 0;
		for(int i = 0;i < op.length;i++) {
			for(int j = 0;j < op.length;j++) {
				for(int k = 0;k < op.length;k++) {
					if(op[i]=='+') {
						sum += A+B;
					}else {
						sum += A-B;
					}
					if(op[j]=='+') {
						sum += C;
					}else {
						sum -= C;
					}
					if(op[k]=='+') {
						sum += D;
					}else {
						sum -=D;
					}
					if(sum==7) {
						System.out.println(A+String.valueOf(op[i])
								+B+String.valueOf(op[j])
								+C+String.valueOf(op[k])
								+D+"=7");
						return;
					}
					sum=0;
				}
			}
		}
	}
}