import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    }
} Main public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    } main {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) char[] s = sc.next().toCharArray(); s sc.next().toCharArray() sc.next().toCharArray sc.next() sc.next sc int[] li = new int[4]; li new int[4] 4 for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            li[i] = Character.getNumericValue(s[i]);
        } {
            li[i] = Character.getNumericValue(s[i]);
        } li[i] = Character.getNumericValue(s[i]) li[i] li i Character.getNumericValue(s[i]) Character.getNumericValue Character s[i] s i if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]+li[1]+li[2]+li[3] == 7 li[0]+li[1]+li[2]+li[3] li[2] li[0]+li[1]+li[2]+li[3] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7") System.out.println System.out System System.out li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7" li[3] "+" li[2] "+" li[1] li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7" li[0] li 0 "+" li[1] li 1 "+" li[2] li 2 "+" li[3] li 3 "=7" if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]+li[1]+li[2]-li[3] == 7 li[0]+li[1]+li[2]-li[3] li[0]+li[1]+li[2] li[0]+li[1]+li[2] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7") System.out.println System.out System System.out li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7" li[3] "-" li[2] "+" li[1] li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7" li[0] li 0 "+" li[1] li 1 "+" li[2] li 2 "-" li[3] li 3 "=7" if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]+li[1]-li[2]+li[3] == 7 li[0]+li[1]-li[2]+li[3] li[0]+li[1]-li[2] li[0]+li[1] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7") System.out.println System.out System System.out li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7" li[3] "+" li[2] "-" li[1] li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7" li[0] li 0 "+" li[1] li 1 "-" li[2] li 2 "+" li[3] li 3 "=7" if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]-li[1]+li[2]+li[3] == 7 li[0]-li[1]+li[2]+li[3] li[0]-li[1]+li[2]+li[3] li[0]-li[1] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7") System.out.println System.out System System.out li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7" li[3] "+" li[2] "+" li[1] li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7" li[0] li 0 "-" li[1] li 1 "+" li[2] li 2 "+" li[3] li 3 "=7" if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]+li[1]-li[2]-li[3] == 7 li[0]+li[1]-li[2]-li[3] li[0]+li[1]-li[2]-li[3] li[0]+li[1] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7") System.out.println System.out System System.out li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7" li[3] "-" li[2] "-" li[1] li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7" li[0] li 0 "+" li[1] li 1 "-" li[2] li 2 "-" li[3] li 3 "=7" if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]-li[1]-li[2]+li[3] == 7 li[0]-li[1]-li[2]+li[3] li[0]-li[1]-li[2] li[0]-li[1]-li[2] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7") System.out.println System.out System System.out li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7" li[3] "+" li[2] "-" li[1] li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7" li[0] li 0 "-" li[1] li 1 "-" li[2] li 2 "+" li[3] li 3 "=7" if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]-li[1]+li[2]-li[3] == 7 li[0]-li[1]+li[2]-li[3] li[0]-li[1]+li[2] li[0]-li[1] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7") System.out.println System.out System System.out li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7" li[3] "-" li[2] "+" li[1] li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7" li[0] li 0 "-" li[1] li 1 "+" li[2] li 2 "-" li[3] li 3 "=7" if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7"); li[0]-li[1]-li[2]-li[3] == 7 li[0]-li[1]-li[2]-li[3] li[2] li[0]-li[1]-li[2]-li[3] li[0] li 0 li[1] li 1 li[2] li 2 li[3] li 3 7 System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7") System.out.println System.out System System.out li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7" li[3] "-" li[2] "-" li[1] li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7" li[0] li 0 "-" li[1] li 1 "-" li[2] li 2 "-" li[3] li 3 "=7" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        char[] s = sc.next().toCharArray();
        int[] li = new int[4];
        for(int i = 0; i < 4; i++){
            li[i] = Character.getNumericValue(s[i]);
        }
        if(li[0]+li[1]+li[2]+li[3] == 7)System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"+"+li[3]+"=7");
        else if(li[0]+li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"+"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]+li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"+"+li[3]+"=7");
        else if(li[0]-li[1]+li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"+"+li[2]+"-"+li[3]+"=7");
        else if(li[0]-li[1]-li[2]-li[3] == 7) System.out.println(li[0]+"-"+li[1]+"-"+li[2]+"-"+li[3]+"=7");
    }
}