function main(arg) {
	arg = arg.trim().split(/\n/);
  	var h = arg[0].split(' ')[0], n = arg[0].split(' ')[1],
        sum = arg[1].split(' ');
    sum = sum.map(str => parseInt(str, 10));
    sum = sum.reduce((result, num) => (result + num));
  	
  	console.log(sum >= h ? 'Yes' : 'No');
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));