fun main(args: Array<String>) {
    abc079c()
}

private enum class Op(val value: String) { PLUS("+"), MINUS("-") }

fun abc079c() {
    val (a, b, c, d) = readLine()!!.map { it.toString().toInt() }

    var op1 = Op.PLUS
    var op2 = Op.PLUS
    var op3 = Op.PLUS

    for (i in 0..bits(3)) {
        op1 = if (i % 2 == 0) Op.PLUS else Op.MINUS
        op2 = if ((i shr 1) % 2 == 0) Op.PLUS else Op.MINUS
        op3 = if ((i shr 2) % 2 == 0) Op.PLUS else Op.MINUS
        if (exec(a, op1, b, op2, c, op3, d) == 7) break
    }

    println("""$a${op1.value}$b${op2.value}$c${op3.value}$d=${exec(a, op1, b, op2, c, op3, d)}""")
}

private fun exec(a: Int, op1: Op, b: Int, op2: Op, c: Int, op3: Op, d: Int): Int {
    return a + (if (op1 == Op.PLUS) b else -b) + (if (op2 == Op.PLUS) c else -c) + (if (op3 == Op.PLUS) d else -d)
}

private fun bits(x: Int): Int {
    var ret = 1

    repeat(x) { ret *= 2 }

    return ret - 1
}
