fun main(args: Array<String>) {

    val (H, N) = readLine()!!.split(" ").map(String::toDouble)

    var i : Int = 0
    readLine()!!.split(" ").map(String::toInt).forEach {
        i+=it
    }

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