fun main(args : Array<String>) {
    val (a, b, c, d) = readLine()!!.map { it.toString().toInt() }

    for (i in 0..1) {
        for (j in 0..1) {
            for (k in 0..1) {
                var ans = if (i == 0) a + b else a - b
                ans += if (j == 0) c else -c
                ans += if (k == 0) d else -d

                if (ans == 7) {
                    println("$a${if (i == 0) '+' else '-'}$b${if (j == 0) '+' else '-'}$c${if (k == 0) '+' else '-'}$d=7")
                    return
                }
            }
        }
    }
}