function main(input) {
  const arg = input.split('\n')
  const t = arg[0].split(' ')
  var h = t[0], n = t[1]
  var a = arg[1].split(' ').map(x => parseInt(x, 10))
  var s = 0
  for(var i=0;i<n;i++) s += a[i]
  console.log(h<=s?'Yes':'No')
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'));
