#include <string>
#include <vector>
#include <iostream>
#include <cstdlib>

using namespace std;

int ctoi(char c){
    switch(c){
        case '0': return 0;
        case '1': return 1;
        case '2': return 2;
        case '3': return 3;
        case '4': return 4;
        case '5': return 5;
        case '6': return 6;
        case '7': return 7;
        case '8': return 8;
        case '9': return 9;
        default : return -1;
    }
    return 0;
}

bool judge(int v, bool _op1, bool _op2, bool _op3, vector<int> abcd) {
    if(v == 7) {
        vector<string> op;
        op.reserve(4);
        vector<bool> _op{_op1, _op2, _op3};
        for(bool o : _op) {
            if(o) {
                op.push_back("+");
            }
            else {
                op.push_back("-");
            }
        }
        for(int i = 0; i < 3; i++) {
            cout << abcd[i] << op[i];
        }
        cout << abcd[3] << "=7" << endl;
        return true;
    }
    return false;
}

int main() {
    string input;
    cin >> input;
    vector<int> _abcd(4);
    for(int i = 0; i < 4; i++)
        _abcd[i] = ctoi(input[i]);
    
    vector<bool> op{true, false};

    for(bool op1 : op) {
        if(op1) {
            int ab = _abcd[0] + _abcd[1];
            for(bool op2 : op) {
                if(op2) {
                    int abc = ab + _abcd[2];
                    for(bool op3 : op) {
                        if(op3) {
                            int abcd = abc + _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                        else {
                            int abcd = abc - _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                    }
                }
                else {
                    int abc = ab - _abcd[2];
                    for(bool op3 : op) {
                        if(op3) {
                            int abcd = abc + _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                        else {
                            int abcd = abc - _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                    }
                }
            }
        }
        else {
            int ab = _abcd[0] - _abcd[1];
            for(bool op2 : op) {
                if(op2) {
                    int abc = ab + _abcd[2];
                    for(bool op3 : op) {
                        if(op3) {
                            int abcd = abc + _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                        else {
                            int abcd = abc - _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                    }
                }
                else {
                    int abc = ab - _abcd[2];
                    for(bool op3 : op) {
                        if(op3) {
                            int abcd = abc + _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                        else {
                            int abcd = abc - _abcd[3];
                            if(judge(abcd,op1,op2,op3,_abcd))
                                return 0;
                        }
                    }
                }
            }
        }
    }
    return 0;
}

Measured memory_bytes: 256