// 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];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    }
} 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];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    }
} Main public static void main(final String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);

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

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    } main {
        Scanner sc = new Scanner(System.in);

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

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int[] a = new int[4]; a new int[4] 4 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 result = ""; result "" for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        } int i = 0; int i = 0; i 0 i < 2 i 2 i++ i++ i {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        } {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        } for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            } int j = 0; int j = 0; j 0 j < 2 j 2 j++ j++ j {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            } {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            } for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                } int j2 = 0; int j2 = 0; j2 0 j2 < 2 j2 2 j2++ j2++ j2 {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                } {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                } for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    } int k = 0; int k = 0; k 0 k < 2 k 2 k++ k++ k {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    } {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    } int a1 = i % 2 == 0 ? a[0] : -a[0]; a1 i % 2 == 0 ? a[0] : -a[0] i % 2 == 0 i % 2 i 2 0 a[0] a 0 -a[0] a[0] a 0 String op1 = j % 2 == 0 ? "+" : "-"; op1 j % 2 == 0 ? "+" : "-" j % 2 == 0 j % 2 j 2 0 "+" "-" int a2 = j % 2 == 0 ? a[1] : -a[1]; a2 j % 2 == 0 ? a[1] : -a[1] j % 2 == 0 j % 2 j 2 0 a[1] a 1 -a[1] a[1] a 1 String op2 = j2 % 2 == 0 ? "+" : "-"; op2 j2 % 2 == 0 ? "+" : "-" j2 % 2 == 0 j2 % 2 j2 2 0 "+" "-" int a3 = j2 % 2 == 0 ? a[2] : -a[2]; a3 j2 % 2 == 0 ? a[2] : -a[2] j2 % 2 == 0 j2 % 2 j2 2 0 a[2] a 2 -a[2] a[2] a 2 String op3 = k % 2 == 0 ? "+" : "-"; op3 k % 2 == 0 ? "+" : "-" k % 2 == 0 k % 2 k 2 0 "+" "-" int a4 = k % 2 == 0 ? a[3] : -a[3]; a4 k % 2 == 0 ? a[3] : -a[3] k % 2 == 0 k % 2 k 2 0 a[3] a 3 -a[3] a[3] a 3 if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        } a1 + a2 + a3 + a4 == 7 a1 + a2 + a3 + a4 a3 a1 + a2 + a3 + a4 a1 a2 a3 a4 7 {
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        } result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7" result Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7" Objects.toString(a[3]) op3 Objects.toString(a[2]) op2 Objects.toString(a[1]) Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7" Objects.toString(a[0]) Objects.toString Objects a[0] a 0 op1 Objects.toString(a[1]) Objects.toString Objects a[1] a 1 op2 Objects.toString(a[2]) Objects.toString Objects a[2] a 2 op3 Objects.toString(a[3]) Objects.toString Objects a[3] a 3 "=7" System.out.println(result) System.out.println System.out System System.out result return; final String[] args args public class Main {

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

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

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    }
} public class Main {

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

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

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    }
} 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];
        for (int i = 0; i < 4; i++) {
            a[i] = System.in.read() - '0';
        }

        String result = "";
        for (int i = 0; i < 2; i++) {
            for (int j = 0; j < 2; j++) {
                for (int j2 = 0; j2 < 2; j2++) {
                    for (int k = 0; k < 2; k++) {
                    int a1 = i % 2 == 0 ? a[0] : -a[0];
                    String op1 = j % 2 == 0 ? "+" : "-";
                    int a2 = j % 2 == 0 ? a[1] : -a[1];
                    String op2 = j2 % 2 == 0 ? "+" : "-";
                    int a3 = j2 % 2 == 0 ? a[2] : -a[2];
                    String op3 = k % 2 == 0 ? "+" : "-";
                    int a4 = k % 2 == 0 ? a[3] : -a[3];

                        if (a1 + a2 + a3 + a4 == 7){
                        result = Objects.toString(a[0]) + op1 + Objects.toString(a[1]) + op2 + Objects.toString(a[2]) + op3 + Objects.toString(a[3]) +"=7";
                        System.out.println(result);
                        return;
                        }
                    }
                }
            }
        }
    }
}