fun calc(op: Char, x: Int, y: Int) = when (op) {
    '+' -> x + y
    else -> x - y
}

fun main(args: Array<String>) {
    val (a, b, c, d) = readLine()!!.map { it - '0' }
    val ops = charArrayOf('+', '-')
    for (op1 in ops) {
        val ab = calc(op1, a, b)
        for (op2 in ops) {
            val abc = calc(op2, ab, c)
            for (op3 in ops) {
                val abcd = calc(op3, abc, d)
                if (abcd == 7) {
                    println("$a$op1$b$op2$c$op3$d=7")
                    return
                }
            }
        }
    }
}
