object Main extends App {  
  val Array(a,b,c,d) = readLine.split("").filter(_.nonEmpty).map(_.toInt)
  
  def calc(ope: Boolean, x: Int, y: Int) = if (ope) x + y else x - y
  
  val ops = for {
    op1 <- Seq(true, false)
    op2 <- Seq(true, false)
    op3 <- Seq(true, false)
    if (calc(op3, calc(op2, (calc(op1, a, b)), c), d)) == 7
  } yield (op1, op2, op3)
  
  def opStr(bool: Boolean) = if (bool) "+" else "-"
  
  println(s"$a${opStr(ops(0)._1)}$b${opStr(ops(0)._2)}$c${opStr(ops(0)._3)}$d=7")
}