import scala.util.control.Breaks._

object Main extends App {
  val Array(h, n) = io.StdIn.readLine().split(' ').map(_.toInt)
  val an = io.StdIn.readLine().split(' ').map(_.toInt)
  var sum = 0
  var ans = "No"
  breakable(
    for (a <- an) {
      sum += a
      if (sum >= h) {ans = "Yes"; break()}
    }
  )
  println(ans)
}