import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	}
}
 import java.util.*; util.* java import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; import java.math.BigInteger; BigInteger java.math public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	} main {
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int a = s.charAt(0) - '0'; a s.charAt(0) - '0' s.charAt(0) s.charAt s 0 '0' int b = s.charAt(1) - '0'; b s.charAt(1) - '0' s.charAt(1) s.charAt s 1 '0' int c = s.charAt(2) - '0'; c s.charAt(2) - '0' s.charAt(2) s.charAt s 2 '0' int d = s.charAt(3) - '0'; d s.charAt(3) - '0' s.charAt(3) s.charAt s 3 '0' String op1 = ""; op1 "" String op2 = ""; op2 "" String op3 = ""; op3 "" for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		} int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		} {
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		} int sum = a; sum a if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    } ((i>>0)&1) == 0 ((i>>0)&1) (i>>0) i 0 1 0 {
		        op1 = "+";
		        sum += b;
		    } op1 = "+" op1 "+" sum += b sum b {
		        op1 = "-";
		        sum -= b;
		    } op1 = "-" op1 "-" sum -= b sum b if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    } ((i>>1)&1) == 0 ((i>>1)&1) (i>>1) i 1 1 0 {
		        op2 = "+";
		        sum += c;
		    } op2 = "+" op2 "+" sum += c sum c {
		        op2 = "-";
		        sum -= c;
		    } op2 = "-" op2 "-" sum -= c sum c if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    } ((i>>2)&1) == 0 ((i>>2)&1) (i>>2) i 2 1 0 {
		        op3 = "+";
		        sum += d;
		    } op3 = "+" op3 "+" sum += d sum d {
		        op3 = "-";
		        sum -= d;
		    } op3 = "-" op3 "-" sum -= d sum d if(sum == 7) break; sum == 7 sum 7 break; System.out.println(a + op1 + b + op2 + c + op3 + d + "=7") System.out.println System.out System System.out a + op1 + b + op2 + c + op3 + d + "=7" d op3 c op2 b a + op1 + b + op2 + c + op3 + d + "=7" a op1 b op2 c op3 d "=7" String[] args args public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	}
} public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	}
} Main
import java.util.*;
import static java.lang.Math.*;
import java.math.BigInteger;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		// 入力
		String s = sc.next();
		int a = s.charAt(0) - '0';
		int b = s.charAt(1) - '0';
		int c = s.charAt(2) - '0';
		int d = s.charAt(3) - '0';
		
		// 計算
		String op1 = "";
		String op2 = "";
		String op3 = "";
		for(int i = 0; i < 8; i++){
		    int sum = a;
		    if(((i>>0)&1) == 0){
		        op1 = "+";
		        sum += b;
		    }else{
		        op1 = "-";
		        sum -= b;
		    }
		    if(((i>>1)&1) == 0){
		        op2 = "+";
		        sum += c;
		    }else{
		        op2 = "-";
		        sum -= c;
		    }
		    if(((i>>2)&1) == 0){
		        op3 = "+";
		        sum += d;
		    }else{
		        op3 = "-";
		        sum -= d;
		    }
		    if(sum == 7) break;
		}
		
		// 出力
		System.out.println(a + op1 + b + op2 + c + op3 + d + "=7");
	}
}

