fun main(args: Array<String>) {
    val (a, b, c, d) = readLine()?.toCharArray()?.map{ it.toInt() - 48 } ?: return

    // a は正なので、b,c,dの計算結果を7-aにする必要がある
    val total = 7 - a

    // +,-の組み合わせは8通り
    for (i in 0 until 8) {
        val bAppliedOpe1 = if (i.and(0b0100) == 0b0100) b else -b
        val cAppliedOpe2 = if (i.and(0b0010) == 0b0010) c else -c
        val dAppliedOpe3 = if (i.and(0b0001) == 0b0001) d else -d

        if (bAppliedOpe1 + cAppliedOpe2 + dAppliedOpe3 == total) {
            val ope1 = if (i.and(0b0100) == 0b0100) '+' else '-'
            val ope2 = if (i.and(0b0010) == 0b0010) '+' else '-'
            val ope3 = if (i.and(0b0001) == 0b0001) '+' else '-'
            println("$a$ope1$b$ope2$c$ope3$d=7")
            return
        }
    }
}