
fun main(args:Array<String>) {
    val input = readLine()!!
    assert(input.length == 4)
    val (A,B,C,D) = input.map{it.toInt()-'0'.toInt()}
    0.until(8).map { n->
       0.until(3).map { i->
         if((n and (1 shl i)) > 0) {1} else {-1}
       }
    }.filter { A + it[0] * B + it[1] * C + it[2] * D == 7}.let {
        assert(it.size !=0)
        val opr = it[0].map {pm -> if(pm==1) {"+"} else {"-"}}
        println("${A}${opr[0]}${B}${opr[1]}${C}${opr[2]}${D}=7")
    }
}