import scala.io.StdIn

object Main extends App {
  val Array(a, b) = StdIn.readLine().split(' ').map(_.toInt)
  val s = StdIn.readLine()
  println(if(s.charAt(a) == '-' && s.replace("-", "").exists(p => p.isDigit)) "Yes" else "No")
}