import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayList;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io import java.util.ArrayList; ArrayList java.util public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    }
} Main public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] nums =  br.readLine().split(""); nums br.readLine().split("") br.readLine().split br.readLine() br.readLine br "" int total; total ArrayList<String> expr = new ArrayList<>(); expr new ArrayList<>() StringBuilder buff = new StringBuilder(); buff new StringBuilder() for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        } int bit=0; int bit=0; bit 0 bit<(1<<nums.length-1) bit (1<<nums.length-1) 1 nums.length-1 nums.length nums nums.length 1 bit++ bit++ bit {
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        } {
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        } total = Integer.parseInt(nums[0]) total Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 buff.append(nums[0]) buff.append buff nums[0] nums 0 for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            } int i=0; int i=0; i 0 i<nums.length-1 i nums.length-1 nums.length nums nums.length 1 i++ i++ i {
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            } {
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            } if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                } (bit&1<<i)==1<<i (bit&1<<i) bit 1<<i 1 i 1<<i 1 i {
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } total += Integer.parseInt(nums[i+1]) total Integer.parseInt(nums[i+1]) Integer.parseInt Integer nums[i+1] nums i+1 i 1 buff.append("+" + nums[i+1]) buff.append buff "+" + nums[i+1] "+" nums[i+1] nums i+1 i 1 if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                } (bit&1<<i)==0 (bit&1<<i) bit 1<<i 1 i 0 {
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                } total -= Integer.parseInt(nums[i+1]) total Integer.parseInt(nums[i+1]) Integer.parseInt Integer nums[i+1] nums i+1 i 1 buff.append("-" + nums[i+1]) buff.append buff "-" + nums[i+1] "-" nums[i+1] nums i+1 i 1 if(total==7)expr.add(buff.toString() + "=7"); total==7 total 7 expr.add(buff.toString() + "=7") expr.add expr buff.toString() + "=7" buff.toString() buff.toString buff "=7" buff.delete(0, buff.length()) buff.delete buff 0 buff.length() buff.length buff System.out.println(expr.get(0)) System.out.println System.out System System.out expr.get(0) expr.get expr 0 String[] args args public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    }
} public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayList;

public class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums =  br.readLine().split("");
        
        int total;
        ArrayList<String> expr = new ArrayList<>();
        StringBuilder buff = new StringBuilder();
        
        for(int bit=0; bit<(1<<nums.length-1); bit++){
            total = Integer.parseInt(nums[0]);
            buff.append(nums[0]);
            for(int i=0; i<nums.length-1; i++){
                if((bit&1<<i)==1<<i){
                    total += Integer.parseInt(nums[i+1]);
                    buff.append("+" + nums[i+1]);
                } else if((bit&1<<i)==0){
                    total -= Integer.parseInt(nums[i+1]);
                    buff.append("-" + nums[i+1]);
                }
            }
            if(total==7)expr.add(buff.toString() + "=7");
            buff.delete(0, buff.length());
        }
        System.out.println(expr.get(0));
    }
}