fun main(args: Array<String>) {
    val sc = java.util.Scanner(System.`in`)
    val list = sc.next().toCharArray().map(Char::toString).map(String::toInt).toMutableList()
    val f = list.removeAt(0)
    op(list, f, "$f")
}

fun op(list: List<Int>, v: Int, s: String): Boolean {
    if (list.isEmpty()) {
        return if (v == 7) {
            println("$s=7")
            true
        } else {
            false
        }
    }
    val n = list[0]
    val nextList = list.slice(1 until list.count()).toList()
    if (op(nextList, v + n, "$s+$n")) {
        return true
    }
    if (op(nextList, v - n, "$s-$n")) {
        return true
    }
    return false
}