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