import scala.io.StdIn

object Main extends App {
  val a = StdIn.readLine.split(" ")
  val seq = StdIn.readLine
  val ans = if(seq.count(_ == '-') == 1 && seq.charAt(a(0).toInt) == '-') "Yes"
            else "No"
  println(ans)
}