// package app;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.StringJoiner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    }

    static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    }

} import java.math.BigDecimal; BigDecimal java.math import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.HashMap; HashMap java.util import java.util.List; List java.util import java.util.Map; Map java.util import java.util.Objects; Objects java.util import java.util.Scanner; Scanner java.util import java.util.StringJoiner; StringJoiner java.util import java.util.stream.Stream; Stream java.util.stream public class Main {

    public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    }

    static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    }

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

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    } main {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] a = new int[4]; a new int[4] 4 boolean [] ops = new boolean[3]; ops new boolean[3] 3 for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        } int i = 0; int i = 0; i 0 i < 4 i 4 i++ i++ i {
            a[i] = System.in.read() - '0';
        } {
            a[i] = System.in.read() - '0';
        } a[i] = System.in.read() - '0' a[i] a i System.in.read() - '0' System.in.read() System.in.read System.in System System.in '0' String[] op = new String[]{"+", "-"}; op new String[]{"+", "-"} String expression = ""; expression "" for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        } int i = 0; int i = 0; i 0 i < Math.pow(2, 3) i Math.pow(2, 3) Math.pow Math 2 3 i++ i++ i {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        } {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        } int sum = a[0]; sum a[0] a 0 ops[0] = (i & 1) == 1 ops[0] ops 0 (i & 1) == 1 (i & 1) i 1 1 ops[1] = ((i >> 1) & 1) == 1 ops[1] ops 1 ((i >> 1) & 1) == 1 ((i >> 1) & 1) (i >> 1) i 1 1 1 ops[2] = ((i >> 2) & 1) == 1 ops[2] ops 2 ((i >> 2) & 1) == 1 ((i >> 2) & 1) (i >> 2) i 2 1 1 for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                sum = calc(sum, ops[j], a[j + 1]);
            } {
                sum = calc(sum, ops[j], a[j + 1]);
            } sum = calc(sum, ops[j], a[j + 1]) sum calc(sum, ops[j], a[j + 1]) calc sum ops[j] ops j a[j + 1] a j + 1 j 1 if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            } sum == 7 sum 7 {
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            } expression = Objects.toString(a[0]) expression Objects.toString(a[0]) Objects.toString Objects a[0] a 0 for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                } int j = 0; int j = 0; j 0 j < ops.length j ops.length ops ops.length j++ j++ j {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                } {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                } expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]) expression op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]) op[ops[j] ? 0 : 1] op ops[j] ? 0 : 1 ops[j] ops j 0 1 Objects.toString(a[j + 1]) Objects.toString Objects a[j + 1] a j + 1 j 1 expression += "=7" expression "=7" break; System.out.println(expression) System.out.println System.out System System.out expression final String[] args args static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    } calc {
        return op ? num1 + num2 : num1 - num2;
    } return op ? num1 + num2 : num1 - num2; op ? num1 + num2 : num1 - num2 op num1 + num2 num1 num2 num1 - num2 num1 num2 int num1 num1 boolean op op int num2 num2 public class Main {

    public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    }

    static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    }

} public class Main {

    public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    }

    static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    }

} Main
// package app;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Scanner;
import java.util.StringJoiner;
import java.util.stream.Stream;

public class Main {

    public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

        int[] a = new int[4];
        boolean [] ops = new boolean[3];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String[] op = new String[]{"+", "-"};

        String expression = "";
        for (int i = 0; i < Math.pow(2, 3); i++) {
            int sum = a[0];

            ops[0] = (i & 1) == 1;
            ops[1] = ((i >> 1) & 1) == 1;
            ops[2] = ((i >> 2) & 1) == 1;

            for (int j = 0; j < 3; j++) {
                sum = calc(sum, ops[j], a[j + 1]);
            }

            if (sum == 7){
                expression = Objects.toString(a[0]);
                for (int j = 0; j < ops.length; j++) {
                    expression += op[ops[j] ? 0 : 1] + Objects.toString(a[j + 1]);
                }
                expression += "=7";
                break;
            }
        }

        System.out.println(expression);
    }

    static int calc(int num1, boolean op, int num2){
        return op ? num1 + num2 : num1 - num2;
    }

}