val PLUS = 0
val MINUS = 1

fun main(args: Array<String>) {
    val (A, B, C, D) = readLine()!!.map { it.toInt() - 48 }
    (0..1).forEach { op1 ->
        (0..1).forEach { op2 ->
            (0..1).forEach { op3 ->
                // A, B
                if (operate(operate(operate(A, B, op1), C, op2), D, op3) == 7) {
                    println(A.toString() + stringifyOperator(op1) + B.toString() + stringifyOperator(op2) + C.toString() + stringifyOperator(op3) + D.toString() + "=7")
                    return
                }
            }
        }
    }
}


fun operate(x: Int, y: Int, operator: Int) : Int {
    if (operator == PLUS) {
        return x + y
    } else {
        return x - y
    }
}

fun stringifyOperator(num: Int) : String {
    if (num == PLUS) {
        return "+"
    } else {
        return "-"
    }
}