/*
* @Author Silviase(@silviasetitech)
* For ProCon
*/

import java.util.*;
import java.lang.*;
import java.math.*;

public class Main{    
    static int[] parent;
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    }

    public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    }

}

 import java.util.*; util.* java import java.lang.*; lang.* java import java.math.*; math.* java public class Main{    
    static int[] parent;
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    }

    public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    }

} Main static int[] parent; parent public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    } main {
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.next(); s sc.next() sc.next sc int[] nums = new int[4]; nums new int[4] 4 for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        } nums[i] = Integer.parseInt(String.valueOf(s.charAt(i))) nums[i] nums i Integer.parseInt(String.valueOf(s.charAt(i))) Integer.parseInt Integer String.valueOf(s.charAt(i)) String.valueOf String s.charAt(i) s.charAt s i int[] pm = new int[3]; pm new int[3] 3 for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        } int i = 0; int i = 0; i 0 i < 8 i 8 i++ i++ i {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        } {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        } int tmp = nums[0]; tmp nums[0] nums 0 String binary = make_bi_nari(3, i); binary make_bi_nari(3, i) make_bi_nari 3 i for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            } {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            } pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j))) pm[j] pm j Integer.parseInt(String.valueOf(binary.charAt(j))) Integer.parseInt Integer String.valueOf(binary.charAt(j)) String.valueOf String binary.charAt(j) binary.charAt binary j if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                } pm[j] == 0 pm[j] pm j 0 {
                    tmp-=nums[j+1];
                } tmp-=nums[j+1] tmp nums[j+1] nums j+1 j 1 {
                    tmp+=nums[j+1];
                } tmp+=nums[j+1] tmp nums[j+1] nums j+1 j 1 if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            } tmp == 7 tmp 7 {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            } for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                } {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                } System.out.print(nums[j]) System.out.print System.out System System.out nums[j] nums j if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    } pm[j] == 0 pm[j] pm j 0 {
                        System.out.print("-");
                    } System.out.print("-") System.out.print System.out System System.out "-" {
                        System.out.print("+");
                    } System.out.print("+") System.out.print System.out System System.out "+" System.out.println(nums[3]+"=7") System.out.println System.out System System.out nums[3]+"=7" nums[3] nums 3 "=7" return; sc.close() sc.close sc String[] args args public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    } make_bi_nari {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    } String res = Integer.toBinaryString(num_to_binary); res Integer.toBinaryString(num_to_binary) Integer.toBinaryString Integer num_to_binary while(res.length() < nbit){
            res = "0" + res;
        } res.length() < nbit res.length() res.length res nbit {
            res = "0" + res;
        } res = "0" + res res "0" + res "0" res return res; res int nbit nbit int num_to_binary num_to_binary public class Main{    
    static int[] parent;
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    }

    public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    }

} public class Main{    
    static int[] parent;
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    }

    public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    }

} Main
/*
* @Author Silviase(@silviasetitech)
* For ProCon
*/

import java.util.*;
import java.lang.*;
import java.math.*;

public class Main{    
    static int[] parent;
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        String s = sc.next();
        int[] nums = new int[4];
        for (int i = 0; i < 4; i++) {
            nums[i] = Integer.parseInt(String.valueOf(s.charAt(i)));
        }
        
        int[] pm = new int[3];
        for (int i = 0; i < 8; i++) {
            int tmp = nums[0];
            String binary = make_bi_nari(3, i);
            for (int j = 0; j < 3; j++) {
                pm[j] = Integer.parseInt(String.valueOf(binary.charAt(j)));
                if (pm[j] == 0) {
                    tmp-=nums[j+1];
                }else{
                    tmp+=nums[j+1];
                }
            }
            if (tmp == 7) {
                for (int j = 0; j < 3; j++) {
                    System.out.print(nums[j]);
                    if (pm[j] == 0) {
                        System.out.print("-");
                    }else{
                        System.out.print("+");
                    }
                }
                System.out.println(nums[3]+"=7");
                return;
            }
        }

        sc.close();
    }

    public static String make_bi_nari(int nbit, int num_to_binary) {
        String res = Integer.toBinaryString(num_to_binary);
        while(res.length() < nbit){
            res = "0" + res;
        }
        return res;
    }

}


