function main(input) {
  const tmp = input.trim().split('\n')
  const tmp2 = tmp[0].split(' ').map((n) => parseInt(n, 10))
  const h = tmp2[0]
  const n = tmp2[1]
  const a = tmp[1].split(' ').map((n) => parseInt(n, 10))

  const s = a.reduce((i, j) => i + j)

  if (s >= h) {
    console.log('Yes')
  } else {
    console.log('No')
  }
}
main(require('fs').readFileSync('/dev/stdin', 'utf8'))