// https://atcoder.jp/contests/abc153/tasks/abc153_b
import java.lang.Math.*
import java.util.*

fun main(args: Array<String>) {
    val scn = Scanner(System.`in`)
    val H = scn.nextInt()
    val N = scn.nextInt()

    var A = 0
    for(a in 1..N){
        A += scn.nextInt()
    }

    if(A >= H) {
        println("Yes")
    }else{
        println("No")
    }
}