import scala.io.{StdIn => in}

object Main extends App {
  val Array(a, b) = in.readLine.split(" ").map(_.toInt)
  val s = in.readLine

  val ans = if(s.filter(_!='-').size == a + b && s.charAt(a) == '-') "Yes" else "No"
  println(ans)
}