object Main extends App{
  import scala.io.StdIn._
  var ans=0
  val Array(h,n)=readLine().split(" ").map(_.toInt)
  readLine().split(" ").map(i => ans+=i.toInt)
  println(if(ans>=h)"Yes" else "No")
}