function main(arg) {
	arg = arg.trim().split(/\n/);
  	var st = arg[0].split(' '), a = arg[1].split(' '),
        ms = st[0], ara = st[1], at = 0, result = 0;
  	a = a.map(str => parseInt(str, 10));
	a = a.forEach(function(ele) {
    	 at += ele
    });
  	result = ms - at;
  	var out = result <=  0 ? 'Yes' : 'No';
  	
  console.log(out)
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));