import kotlin.system.exitProcess

fun main(args: Array<String>) {
    val input = readLine()!!
    var numbers = mutableListOf<Int>()
    for (i in 0..input.length - 1){
        numbers.add(Integer.parseInt(input[i].toString()))
    }
    solve(1, numbers, numbers[0], "${numbers[0]}")
}

fun solve(index: Int, numbers: List<Int>, answer: Int, expr: String) {
    when {
        (answer == 7) and (index == numbers.size)-> {
            println("$expr=7")
            exitProcess(0)
        }
        index == numbers.size -> return
        else -> {
            solve(index + 1, numbers, answer + numbers[index], "$expr+${numbers[index]}")
            solve(index + 1, numbers, answer - numbers[index], "$expr-${numbers[index]}")
        }
    }
}