fun main(args: Array<String>) {
    val l = readLine()!!.split("").subList(1,5).map { it.toInt() }
    val res =
        if (l[0]+l[1]+l[2]+l[3] == 7) "${l[0]}+${l[1]}+${l[2]}+${l[3]}=7"
        else if (l[0]-l[1]+l[2]+l[3] == 7) "${l[0]}-${l[1]}+${l[2]}+${l[3]}=7"
        else if (l[0]+l[1]-l[2]+l[3] == 7) "${l[0]}+${l[1]}-${l[2]}+${l[3]}=7"
        else if (l[0]+l[1]+l[2]-l[3] == 7) "${l[0]}+${l[1]}+${l[2]}-${l[3]}=7"
        else if (l[0]+l[1]-l[2]-l[3] == 7) "${l[0]}+${l[1]}-${l[2]}-${l[3]}=7"
        else if (l[0]-l[1]+l[2]-l[3] == 7) "${l[0]}-${l[1]}+${l[2]}-${l[3]}=7"
        else if (l[0]-l[1]-l[2]+l[3] == 7) "${l[0]}-${l[1]}-${l[2]}+${l[3]}=7"
        else "${l[0]}-${l[1]}-${l[2]}-${l[3]}=7"
    println(res)
}
