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