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 a = 7 - list[0]
    sequenceOf(-1, 1).forEach { op1 ->
        sequenceOf(-1, 1).forEach { op2 ->
            sequenceOf(-1, 1).forEach { op3 ->
                if (list[1] * op1 + list[2] * op2 + list[3] * op3 == a) {
                    println("${list[0]}${if (op1 == 1) '+' else '-'}${list[1]}${if (op2 == 1) '+' else '-'}${list[2]}${if (op3 == 1) '+' else '-'}${list[3]}=7")
                    return
                }
            }
        }
    }
}
