process.stdin.resume();
process.stdin.setEncoding("utf8");
    var lines = [];
    var reader = require("readline").createInterface({
        input: process.stdin,
        output: process.stdout
    });
reader.on("line", (line) => {
    lines.push(line);
});

reader.on("close", () => {
    var e = lines[0].split(" "), h = Number(e[0]), a = Number(e[1]);
    var f = lines[1].split(" "), array = [];
    for(var i=0;i<a;i++){
        array.push(Number(f[i]));
    }
    var sum = array.reduce((x, y) => x + y);
    if(sum >= h){
        console.log("Yes");
    }else if (sum < h){
        console.log("No")
    }
    
});