import java.util.Scanner

object Main {
  def main(args: Array[String]) {
    if (args.length > 0 && args(0) == "TEST") {
      println(test())
    } else {
      val input = io.Source.stdin.getLines().mkString("\n")
      println(solve(input).trim())
    }
  }

  def solve(input: String): String = {
    val s: Scanner = new Scanner(input)
    val Array(a,b,c,d) = s.next().toCharArray.map(_.asDigit)
    val ops = Seq(1, -1)
    val o = for {
      op1 <- ops
      op2 <- ops
      op3 <- ops if a + b * op1 + c * op2 + d * op3 == 7
    } yield Seq(op1, op2, op3).map(o => if (o == 1) "+" else "-")
    val oh = o.head
    s"$a${oh(0)}$b${oh(1)}$c${oh(2)}$d=7"
  }

  val tests = List(
    """1222""".stripMargin -> """1+2+2+2=7""",
    """0290""".stripMargin -> """0-2+9+0=7""",
    """3242""".stripMargin -> """3+2+4-2=7"""
  )

  def test(): String = tests.map { case (i, o) => (i.trim(), o.trim()) }
    .zipWithIndex.map {
    case ((input, outputExpect), i) =>
      val output = solve(input).trim()
      val tnum = i + 1
      s"test$tnum:" + (
        if (output == outputExpect) "Passed"
        else s"Failed\nexpect:\n$outputExpect\noutput:\n$output")
  }
    .mkString("\n")
}