import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    }
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    } main {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) PrintWriter ou = new PrintWriter(System.out); ou new PrintWriter(System.out) String s = sc.next(); s sc.next() sc.next sc sc.close() sc.close sc int[] a = new int[4]; a new int[4] 4 for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48; int i = 0 ; int i = 0 ; i 0 i < 4 i 4 i++ i++ i a[i] = s.charAt(i) - 48; a[i] = s.charAt(i) - 48 a[i] a i s.charAt(i) - 48 s.charAt(i) s.charAt s i 48 int sum sum nn; nn int[] b = new int[3]; b new int[3] 3 char[] q = new char[3]; q new char[3] 3 for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		} int i = 0 ; int i = 0 ; i 0 i < 8 i 8 i++ i++ i {
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		} {
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		} nn = i nn i sum = a[0] sum a[0] a 0 for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			} int j = 0 ; int j = 0 ; j 0 j < 3 j 3 j++ j++ j {
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			} {
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			} b[j] = 1 & nn b[j] b j 1 & nn 1 nn nn /= 2 nn 2 if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				} b[j] == 0 b[j] b j 0 {
					sum += a[j + 1];
					q[j] = '+';
				} sum += a[j + 1] sum a[j + 1] a j + 1 j 1 q[j] = '+' q[j] q j '+' {
					sum -= a[j + 1];
					q[j] = '-';
				} sum -= a[j + 1] sum a[j + 1] a j + 1 j 1 q[j] = '-' q[j] q j '-' if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			} sum == 7 sum 7 {
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			} ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n") ou.print ou "" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n" a[3] q[2] a[2] q[1] a[1] q[0] "" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n" "" a[0] a 0 q[0] q 0 a[1] a 1 q[1] q 1 a[2] a 2 q[2] q 2 a[3] a 3 "=7\n" break; ou.flush() ou.flush ou String[] args args public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    }
} public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    }
} Main
import java.util.*;
import java.io.*;
public class Main{
    public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		String s = sc.next();
		sc.close();
		int[] a = new int[4];
		for(int i = 0 ; i < 4 ; i++) a[i] = s.charAt(i) - 48;
		int sum , nn;
		int[] b = new int[3];
		char[] q = new char[3];
		for(int i = 0 ; i < 8 ; i++){
			nn = i;
			sum = a[0];
			for(int j = 0 ; j < 3 ; j++){
				b[j] = 1 & nn;
				nn /= 2;
				if(b[j] == 0){
					sum += a[j + 1];
					q[j] = '+';
				}else{
					sum -= a[j + 1];
					q[j] = '-';
				}
			}
			if(sum == 7){
				ou.print("" + a[0] + q[0] + a[1] + q[1] + a[2] + q[2] + a[3] + "=7\n");
				break;
			}
		}
		ou.flush();
    }
}