function main(input) {
  var H = input[0].split(" ")[0]-0;
  var N = input[0].split(" ")[1]-0;
  var sum = input[1].split(" ").map(v=>v-0).reduce((a,b)=>a+b);

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

main(require('fs').readFileSync('/dev/stdin', 'utf8').split("\n"))
