import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    }
} import java.util.*; util.* java import java.io.*; io.* java public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    }
} Main public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    } main {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out)); out new PrintWriter(new OutputStreamWriter(System.out)) String[] input = br.readLine().split(""); input br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" int a = Integer.parseInt(input[0]); a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 int b = Integer.parseInt(input[1]); b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 int c = Integer.parseInt(input[2]); c Integer.parseInt(input[2]) Integer.parseInt Integer input[2] input 2 int d = Integer.parseInt(input[3]); d Integer.parseInt(input[3]) Integer.parseInt Integer input[3] input 3 String[] op = new String[3]; op new String[3] 3 if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        } a + b + c + d == 7 a + b + c + d c a + b + c + d a b c d 7 {
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        } op[0] = "+" op[0] op 0 "+" op[1] = "+" op[1] op 1 "+" op[2] = "+" op[2] op 2 "+" if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        } a + b + c - d == 7 a + b + c - d a + b + c a + b + c a b c d 7 {
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        } op[0] = "+" op[0] op 0 "+" op[1] = "+" op[1] op 1 "+" op[2] = "-" op[2] op 2 "-" if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        } a + b - c + d == 7 a + b - c + d a + b - c a + b a b c d 7 {
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        } op[0] = "+" op[0] op 0 "+" op[1] = "-" op[1] op 1 "-" op[2] = "+" op[2] op 2 "+" if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        } a + b - c - d == 7 a + b - c - d a + b - c - d a + b a b c d 7 {
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        } op[0] = "+" op[0] op 0 "+" op[1] = "-" op[1] op 1 "-" op[2] = "-" op[2] op 2 "-" if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        } a - b + c + d == 7 a - b + c + d a - b + c + d a - b a b c d 7 {
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        } op[0] = "-" op[0] op 0 "-" op[1] = "+" op[1] op 1 "+" op[2] = "+" op[2] op 2 "+" if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        } a - b + c - d == 7 a - b + c - d a - b + c a - b a b c d 7 {
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        } op[0] = "-" op[0] op 0 "-" op[1] = "+" op[1] op 1 "+" op[2] = "-" op[2] op 2 "-" if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        } a - b - c + d == 7 a - b - c + d a - b - c a - b - c a b c d 7 {
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        } op[0] = "-" op[0] op 0 "-" op[1] = "-" op[1] op 1 "-" op[2] = "+" op[2] op 2 "+" if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        } a - b - c - d == 7 a - b - c - d c a - b - c - d a b c d 7 {
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        } op[0] = "-" op[0] op 0 "-" op[1] = "-" op[1] op 1 "-" op[2] = "-" op[2] op 2 "-" out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7") out.println out a + op[0] + b + op[1] + c + op[2] + d + "=7" d op[2] c op[1] b a + op[0] + b + op[1] + c + op[2] + d + "=7" a op[0] op 0 b op[1] op 1 c op[2] op 2 d "=7" out.close() out.close out String[] args args public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    }
} public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    }
} Main
import java.util.*;
import java.io.*;

public class Main {
    public static void main(String[] args) throws Exception {

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
        
        String[] input = br.readLine().split("");
        int a = Integer.parseInt(input[0]);
        int b = Integer.parseInt(input[1]);
        int c = Integer.parseInt(input[2]);
        int d = Integer.parseInt(input[3]);
        String[] op = new String[3];
        
        if(a + b + c + d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a + b + c - d == 7){
            op[0] = "+";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a + b - c + d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a + b - c - d == 7){
            op[0] = "+";
            op[1] = "-";
            op[2] = "-";
        }
        
        if(a - b + c + d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "+";
        }
        
        if(a - b + c - d == 7){
            op[0] = "-";
            op[1] = "+";
            op[2] = "-";
        }
        
        if(a - b - c + d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "+";
        }
        
        if(a - b - c - d == 7){
            op[0] = "-";
            op[1] = "-";
            op[2] = "-";
        }
        
        
        out.println(a + op[0] + b + op[1] + c + op[2] + d + "=7");
        out.close();
        
    }
}