import java.util.*


fun main(args: Array<String>){
    val sc:Scanner = Scanner(System.`in`)

    val H = sc.nextInt()
    val N = sc.nextInt()
    var total: Int = 0

    for(i in 0 until N){
        total += sc.nextInt()
    }

    if(H <= total){
        print("Yes")
    }else{
        print("No")
    }

    sc.close()
}