fun main(args: Array<String>) {
    val l = readLine()!!.map(Char::toString).map(String::toInt)

    fun Char.toSign(): String {
        return if (this == '1') {
            "+"
        } else {
            "-"
        }
    }
    for (b in (0..7).map { Integer.toBinaryString(it) }.map { it.padStart(3, '0') }) {
        var sum = l[0]
        if (b[2] == '1') {
            sum += l[1]
        } else {
            sum -= l[1]
        }

        if (b[1] == '1') {
            sum += l[2]
        } else {
            sum -= l[2]
        }
        if (b[0] == '1') {
            sum += l[3]
        } else {
            sum -= l[3]
        }

        if (sum == 7) {
            println("${l[0]}${b[2].toSign()}${l[1]}${b[1].toSign()}${l[2]}${b[0].toSign()}${l[3]}=7")
            return
        }
    }
}

