import java.util.*;
import java.awt.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    }
} import java.util.*; util.* java import java.awt.*; awt.* java import static java.lang.System.*; import static java.lang.System.*; import static java.lang.System.*; import static java.lang.Math.*; import static java.lang.Math.*; import static java.lang.Math.*; public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    } main {
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    } Scanner sc = new Scanner(in); sc new Scanner(in) String s=sc.next(); s sc.next() sc.next sc int temp=Character.getNumericValue(s.charAt(0)); temp Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 String ans=String.valueOf(s.charAt(0)); ans String.valueOf(s.charAt(0)) String.valueOf String s.charAt(0) s.charAt s 0 for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        } int i = 0; int i = 0; i 0 i <(1<<3) i (1<<3) 1 3 i++ i++ i {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        } {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        } for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            } {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            } if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                } (1&i>>j)==1 (1&i>>j) 1 i>>j i j 1 {
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                } temp+=Character.getNumericValue(s.charAt(j+1)) temp Character.getNumericValue(s.charAt(j+1)) Character.getNumericValue Character s.charAt(j+1) s.charAt s j+1 j 1 ans+="+"+String.valueOf(s.charAt(j+1)) ans "+"+String.valueOf(s.charAt(j+1)) "+" String.valueOf(s.charAt(j+1)) String.valueOf String s.charAt(j+1) s.charAt s j+1 j 1 {
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                } temp-=Character.getNumericValue(s.charAt(j+1)) temp Character.getNumericValue(s.charAt(j+1)) Character.getNumericValue Character s.charAt(j+1) s.charAt s j+1 j 1 ans+="-"+String.valueOf(s.charAt(j+1)) ans "-"+String.valueOf(s.charAt(j+1)) "-" String.valueOf(s.charAt(j+1)) String.valueOf String s.charAt(j+1) s.charAt s j+1 j 1 if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            } temp==7 temp 7 {
                ans+="=7";
                break;
            } ans+="=7" ans "=7" break; {
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            } temp=Character.getNumericValue(s.charAt(0)) temp Character.getNumericValue(s.charAt(0)) Character.getNumericValue Character s.charAt(0) s.charAt s 0 ans=String.valueOf(s.charAt(0)) ans String.valueOf(s.charAt(0)) String.valueOf String s.charAt(0) s.charAt s 0 out.println(ans) out.println out ans String[] args args public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    }
} public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    }
} Main
import java.util.*;
import java.awt.*;
import static java.lang.System.*;
import static java.lang.Math.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(in);
        String s=sc.next();
        int temp=Character.getNumericValue(s.charAt(0));
        String ans=String.valueOf(s.charAt(0));
        for (int i = 0; i <(1<<3) ; i++) {
            for (int j = 0; j < 3; j++) {
                if((1&i>>j)==1){
                    temp+=Character.getNumericValue(s.charAt(j+1));
                    ans+="+"+String.valueOf(s.charAt(j+1));
                }else{
                    temp-=Character.getNumericValue(s.charAt(j+1));
                    ans+="-"+String.valueOf(s.charAt(j+1));
                }
            }
            if(temp==7){
                ans+="=7";
                break;
            }else{
                temp=Character.getNumericValue(s.charAt(0));
                ans=String.valueOf(s.charAt(0));
            }
        }
        out.println(ans);
    }
}