import java.util.*

fun main(args: Array<String>) {
    val (h : Long,n : Long) = readLine()!!.split(" ").map { it.toLong() }
    val a = readLine()!!.split(" ").map { it.toLong() }
    var sum = a.reduce{ acc,it -> acc + it}
    if(sum >= h) println("Yes") else println("No")
}