fun main(args: Array<String>) {
    val (a, b, c, d) = readInputLine().toCharArray().map { it.toString().toInt() }
    
    for (i in 0..1) {
        for (j in 0..1) {
            for (k in 0..1) {
                var ans = a
                if (i == 0) {
                    ans += b
                } else {
                    ans -= b
                }
                if (j == 0) {
                    ans += c
                } else {
                    ans -= c
                }
                if (k == 0) {
                    ans += d
                } else {
                    ans -= d
                }
                
                if (ans != 7) {
                    continue
                }
                
                print(a)
                print(opToString(i))
                print(b)
                print(opToString(j))
                print(c)
                print(opToString(k))
                print(d)
                println("=7")
                
                return
            }
        }
    }
}
 
fun readInputLine(): String {
    return readLine()!!
}

fun opToString(op: Int): Char {
    if (op == 0) {
        return '+'
    } else {
        return '-'
    }
}
