function Main(input) {
    var H = parseInt(input[0], 10);
    var N = parseInt(input[1], 10);
    var A = input.slice(2).map(a => parseInt(a, 10));

    var sum = 0;

    for (var i = 0; i < N; i++) {
        sum += A[i];
    }

    console.log(sum >= H ? 'Yes' : 'No');
}

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim().split(/\n|\s/));