import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val x = sc.nextInt

  val d = x % 10
  val c = x % 100 / 10
  val b = x % 1000 / 100
  val a = x / 1000

  val bins = (0 until 8).map(k => zeroEmbeddingtoString(k.toBinaryString, 3))

  val res = bins.find { bin =>
    a + (if (bin(0) == '0') 1 else -1) * b +(if (bin(1) == '0') 1 else -1) * c +(if (bin(2) == '0') 1 else -1) * d == 7
  }.fold("impossible") { bin =>
    val flg0 = if (bin(0) == '0') "+" else "-"
    val flg1 = if (bin(1) == '0') "+" else "-"
    val flg2 = if (bin(2) == '0') "+" else "-"
    s"$a$flg0$b$flg1$c$flg2$d=7"
  }

  println(res)

  def zeroEmbeddingtoString(str: String, index: Int): String ={
    val l = str.length
    List.fill(index - l)("0").mkString + str
  }

}