object Main {
  def main(args:Array[String]) {
    val read = readLine()
    val H = read.split(' ')(0).toInt
    val N = read.split(' ')(1).toInt
    val A = readLine.split(' ').map(_.toInt)

    if(H <= A.sum) println("Yes")
    else println("No")

  }
}
