import scala.io.StdIn.readLine

object Main extends App {

  val Array(h, _) = readLine().split(" ").map(_.toInt)
  val xs = readLine().split(" ").map(_.toInt)

  println(if (xs.sum >= h) "Yes" else "No")
}
