import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    }
} import java.util.*; util.* java public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    }
} Main public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] num = new int[4]; num new int[4] 4 String ss = sc.next(); ss sc.next() sc.next sc for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        } int i=0; int i=0; i 0 i<4 i 4 i++ i++ i {
            num[i]=ss.charAt(i)-'0';
        } {
            num[i]=ss.charAt(i)-'0';
        } num[i]=ss.charAt(i)-'0' num[i] num i ss.charAt(i)-'0' ss.charAt(i) ss.charAt ss i '0' boolean b = true; b true for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        } int i=0; int i=0; i 0 i<8&&b i<8 i 8 b i++ i++ i {
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        } {
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        } int ans = num[0]; ans num[0] num 0 int[] integer = {i/4,(i%4)/2,i%2}; integer {i/4,(i%4)/2,i%2} i/4 i 4 (i%4)/2 (i%4) i 4 2 i%2 i 2 for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            } {
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            } if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1]; integer[j]==0 integer[j] integer j 0 ans+=num[j+1] ans num[j+1] num j+1 j 1 ans-=num[j+1] ans num[j+1] num j+1 j 1 char[] c = new char[3]; c new char[3] 3 for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            } {
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            } if (integer[j]==0)c[j]='+';
                else c[j]='-'; integer[j]==0 integer[j] integer j 0 c[j]='+' c[j] c j '+' c[j]='-' c[j] c j '-' if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            } ans==7 ans 7 {
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            } b=false b false System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7") System.out.println System.out System System.out ""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7" num[3] c[2] num[2] c[1] num[1] c[0] ""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7" "" num[0] num 0 c[0] c 0 num[1] num 1 c[1] c 1 num[2] num 2 c[2] c 2 num[3] num 3 "=7" String[] args args public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    }
} public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    }
} Main
import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int[] num = new int[4];
        String ss = sc.next();
        for (int i=0;i<4;i++){
            num[i]=ss.charAt(i)-'0';
        }
        boolean b = true;
        for (int i=0;i<8&&b;i++){
            int ans = num[0];
            int[] integer = {i/4,(i%4)/2,i%2};
            for (int j=0;j<3;j++){
                if (integer[j]==0) ans+=num[j+1];
                else ans-=num[j+1];
            }
            char[] c = new char[3];
            for (int j=0;j<3;j++){
                if (integer[j]==0)c[j]='+';
                else c[j]='-';
            }
            if (ans==7){
                b=false;
                System.out.println(""+num[0]+c[0]+num[1]+c[1]+num[2]+c[2]+num[3]+"=7");
            }
        }
    }
}
