fun main (args:Array<String>){
    var (monsterHp , raccoonBlowNum) = readLine()!!.split(" ").map(String::toInt)
    val attackPoint = readLine()!!.split(" ").map(String::toInt)
    for (i in 0..raccoonBlowNum-1){
        monsterHp -= attackPoint[i]
    }
    if(monsterHp <= 0) print("Yes")
    else print("No")
}