import java.util.*;
 
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    }
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    }
} Main public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    } main {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int n[] = new int[4]; n new int[4] 4 String ans = ""; ans "" for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        } {
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        } n[i] = Integer.parseInt(s.substring(i, i + 1)) n[i] n i Integer.parseInt(s.substring(i, i + 1)) Integer.parseInt Integer s.substring(i, i + 1) s.substring s i i + 1 i 1 if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] + n[1] + n[2] + n[3] == 7 n[0] + n[1] + n[2] + n[3] n[2] n[0] + n[1] + n[2] + n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        } ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3] ans n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3] "+" n[2] "+" n[1] n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3] n[0] n 0 "+" n[1] n 1 "+" n[2] n 2 "+" n[3] n 3 if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] + n[1] + n[2] - n[3] == 7 n[0] + n[1] + n[2] - n[3] n[0] + n[1] + n[2] n[0] + n[1] + n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        } ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3] ans n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3] "-" n[2] "+" n[1] n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3] n[0] n 0 "+" n[1] n 1 "+" n[2] n 2 "-" n[3] n 3 if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] + n[1] - n[2] + n[3] == 7 n[0] + n[1] - n[2] + n[3] n[0] + n[1] - n[2] n[0] + n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        } ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3] ans n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3] "+" n[2] "-" n[1] n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3] n[0] n 0 "+" n[1] n 1 "-" n[2] n 2 "+" n[3] n 3 if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] - n[1] + n[2] + n[3] == 7 n[0] - n[1] + n[2] + n[3] n[0] - n[1] + n[2] + n[3] n[0] - n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        } ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3] ans n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3] "+" n[2] "+" n[1] n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3] n[0] n 0 "-" n[1] n 1 "+" n[2] n 2 "+" n[3] n 3 if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] + n[1] - n[2] - n[3] == 7 n[0] + n[1] - n[2] - n[3] n[0] + n[1] - n[2] - n[3] n[0] + n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        } ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3] ans n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3] "-" n[2] "-" n[1] n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3] n[0] n 0 "+" n[1] n 1 "-" n[2] n 2 "-" n[3] n 3 if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] - n[1] + n[2] - n[3] == 7 n[0] - n[1] + n[2] - n[3] n[0] - n[1] + n[2] n[0] - n[1] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        } ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3] ans n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3] "-" n[2] "+" n[1] n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3] n[0] n 0 "-" n[1] n 1 "+" n[2] n 2 "-" n[3] n 3 if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] - n[1] - n[2] + n[3] == 7 n[0] - n[1] - n[2] + n[3] n[0] - n[1] - n[2] n[0] - n[1] - n[2] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        } ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3] ans n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3] "+" n[2] "-" n[1] n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3] n[0] n 0 "-" n[1] n 1 "-" n[2] n 2 "+" n[3] n 3 if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } n[0] - n[1] - n[2] - n[3] == 7 n[0] - n[1] - n[2] - n[3] n[2] n[0] - n[1] - n[2] - n[3] n[0] n 0 n[1] n 1 n[2] n 2 n[3] n 3 7 {
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        } ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3] ans n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3] "-" n[2] "-" n[1] n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3] n[0] n 0 "-" n[1] n 1 "-" n[2] n 2 "-" n[3] n 3 System.out.println(ans + "=7") System.out.println System.out System System.out ans + "=7" ans "=7" String[] args args public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    }
} public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    }
} Main
import java.util.*;
 
public class Main {
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
    	String s = sc.next();
        int n[] = new int[4];
        String ans = "";
        for(int i = 0; i < 4; i++){
        	n[i] = Integer.parseInt(s.substring(i, i + 1));
        }
        if(n[0] + n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] + n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] + n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "+" + n[3];
        }else if(n[0] + n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "+" + n[1] + "-" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] + n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "+" + n[2] + "-" + n[3];
        }else if(n[0] - n[1] - n[2] + n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "+" + n[3];
        }else if(n[0] - n[1] - n[2] - n[3] == 7){
        	ans = n[0] + "-" + n[1] + "-" + n[2] + "-" + n[3];
        }
        System.out.println(ans + "=7");
    }
}