sealed abstract class Operand

case object Plus extends Operand

case object Minus extends Operand

object Main extends App {
  // なぜか .tail が必要だった。
  // io.StdIn.readLine().split("").toList
  // ↓
  // List(, 1, 2, 2, 2)
  // のようになるため。
  // AtCoderだけ。
  val N = io.StdIn.readLine().split("").toList.tail.map(_.toInt)

  def calc(o: List[Operand], index: Int, calculated: Int): (Boolean, List[Operand]) = {
    if (index == 3) {
      if (calculated == 7) (true, o) else (false, o)
    }
    else {
      val p = calc(Plus :: o, index + 1, calculated + N(index + 1))
      val m = calc(Minus :: o, index + 1, calculated - N(index + 1))
      if (p._1) p else m
    }
  }

  def printExp(o: List[Operand]): Unit = {
    for (i <- 0 to 2) {
      o(i) match {
        case Plus => print(s"${N(i)}+")
        case Minus => print(s"${N(i)}-")
      }
    }
    println(s"${N(3)}=7")
  }

  val calculated = calc(List(), 0, N.head)
  printExp(calculated._2.reverse)
}
