"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var fs = __importStar(require("fs"));
// 210 5
// 31 41 59 26 53
var input = fs.readFileSync('/dev/stdin', 'utf8').split('\n');
var line1 = input[0];
var line2 = input[1];
var h = parseInt(line1.split(' ')[0], 10);
var n = parseInt(line1.split(' ')[1], 10);
var tech = line2.split(' ').map(function (n) { return parseInt(n, 10); });
for (var i = 0; i < tech.length; i++) {
    h -= tech[i];
}
if (h <= 0) {
    console.log('Yes');
}
else {
    console.log('No');
}
