function Main(inputs) {
  var lines = inputs.split('\n')

  var H = +(lines[0].split(' ')[0])
  var N = +(lines[0].split(' ')[1])

  var max_attack = lines[1].split(' ').map(v=>+v).reduce((s,v)=>s+v)

  console.log(H <= max_attack ? 'Yes' : 'No')
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
