fun main(args: Array<String>) {
    val s = readLine() ?: return
    val (a, b, c, d) = mutableListOf<Int>().apply {
        var tmp = s.toInt()
        while (tmp > 0) {
            add(tmp % 10)
            tmp /= 10
        }
        if (size < s.length) {
            add(0)
        }
    }.reversed()

    for (flg in 0..7) {
        val op1 = if (flg.and(1) != 0) '+' else '-'
        val op2 = if (flg.and(2) != 0) '+' else '-'
        val op3 = if (flg.and(4) != 0) '+' else '-'
        val total = a +
                (if (op1 == '+') b else -b) +
                (if (op2 == '+') c else -c) +
                (if (op3 == '+') d else -d)
        if (total == 7) {
            println("${a}${op1}${b}${op2}${c}${op3}${d}=7")
            return
        }
    }
}