import scala.io.StdIn._

object Main extends App {


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

  def solve() = {
    if(h <= A.sum) "Yes" else "No"
  }

  println(solve())

}

