object Main extends App {
  val sc = new java.util.Scanner(System.in)
  val abcd = sc.next()
  val a = abcd.head.toString.toInt
  val bcd = abcd.tail.map(_.toString.toInt)

  def product[A](l: List[A], n: Int): List[List[A]] = {
    def product(n: Int, res: List[List[A]] = List(Nil)): List[List[A]] = {
      if (n == 0) res else product(n - 1, for (x <- l; r <- res) yield x :: r)
    }
    product(n)
  }

  val fs = product(List(1, -1), 3).find(l =>
    l.zip(bcd).map{case (f, v) => f * v}.sum + a == 7
  ).get
  print(a)
  for ((f, v) <- fs.zip(bcd)) {
    print(if (f == 1) "+" else "-")
    print(v)
  }
  println("=7")
}
