"use strict";
function main(input) {
  let kari = input[0].trim().split(" ");
  let kari3 = input[1].trim().split(" ");

  let kari2 = kari.map(i => parseInt(i));
  let a = kari3.map(i => parseInt(i));

  let h = kari2[0];
  let n = kari2[1];

  let judge = false;
  let sum = 0;
  for(let i=0;i<n;i++){
    sum += a[i];
    if(sum>=h){
      judge=true;
      break;
    }
  }
  console.log(judge?"Yes":"No");
}
main(require('fs').readFileSync('/dev/stdin', 'utf8').trim().split("\n"));