import java.util.Scanner;

class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		int n = 4;
		int x[] = new int[n];
		for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0';

		String X[] = new String[(int) Math.pow(2,n-1)];
		int sum = 0;
		String S ="";

		for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		int n = 4;
		int x[] = new int[n];
		for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0';

		String X[] = new String[(int) Math.pow(2,n-1)];
		int sum = 0;
		String S ="";

		for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		}
	}
} Main public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		int n = 4;
		int x[] = new int[n];
		for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0';

		String X[] = new String[(int) Math.pow(2,n-1)];
		int sum = 0;
		String S ="";

		for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		}
	} main {

		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		int n = 4;
		int x[] = new int[n];
		for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0';

		String X[] = new String[(int) Math.pow(2,n-1)];
		int sum = 0;
		String S ="";

		for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) String s = scan.next(); s scan.next() scan.next scan int n = 4; n 4 int x[] = new int[n]; x new int[n] n for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0'; int i = 0; int i = 0; i 0 i < n i n i++ i++ i x[i] = s.charAt(i)-'0'; x[i] = s.charAt(i)-'0' x[i] x i s.charAt(i)-'0' s.charAt(i) s.charAt s i '0' String X[] = new String[(int) Math.pow(2,n-1)]; X new String[(int) Math.pow(2,n-1)] (int) Math.pow(2,n-1) Math.pow Math 2 n-1 n 1 int sum = 0; sum 0 String S =""; S "" for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		} int i = 0; int i = 0; i 0 i < Math.pow(2,n-1) i Math.pow(2,n-1) Math.pow Math 2 n-1 n 1 i++ i++ i {
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		} {
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		} sum = x[0] sum x[0] x 0 S = String.valueOf(x[0]) S String.valueOf(x[0]) String.valueOf String x[0] x 0 for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			} int j = 0; int j = 0; j 0 j < n-1 j n-1 n 1 j++ j++ j {

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			} {

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			} if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				} (1 & (i>>j)) == 1 (1 & (i>>j)) 1 (i>>j) i j 1 {
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				} sum += x[j+1] sum x[j+1] x j+1 j 1 S += "+" + String.valueOf(x[j+1]) S "+" + String.valueOf(x[j+1]) "+" String.valueOf(x[j+1]) String.valueOf String x[j+1] x j+1 j 1 {
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				} sum -= x[j+1] sum x[j+1] x j+1 j 1 S += "-" + String.valueOf(x[j+1]) S "-" + String.valueOf(x[j+1]) "-" String.valueOf(x[j+1]) String.valueOf String x[j+1] x j+1 j 1 if(sum == 7){
				System.out.print(S+"=7");
				break;
			} sum == 7 sum 7 {
				System.out.print(S+"=7");
				break;
			} System.out.print(S+"=7") System.out.print System.out System System.out S+"=7" S "=7" break; String args[] args
import java.util.Scanner;

class Main {

	public static void main(String args[]){

		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		int n = 4;
		int x[] = new int[n];
		for(int i = 0;i < n; i++)
			x[i] = s.charAt(i)-'0';

		String X[] = new String[(int) Math.pow(2,n-1)];
		int sum = 0;
		String S ="";

		for(int i = 0; i < Math.pow(2,n-1); i++){
			sum = x[0];
			S = String.valueOf(x[0]);
			for(int j = 0; j < n-1; j++){

				if((1 & (i>>j)) == 1){
					sum += x[j+1];
					S += "+" + String.valueOf(x[j+1]);
				}
				else{
					sum -= x[j+1];
					S += "-" + String.valueOf(x[j+1]);
				}
			}
			if(sum == 7){
				System.out.print(S+"=7");
				break;
			}
		}
	}
}
