'use strict';
const main = input => {
  const nums = input[0].split(' ').map(val => parseInt(val));
  const h = nums[0], n = nums[1];
  let a = input[1].split(' ').map(val => parseInt(val));
  const sum = a.reduce((prev, current) => prev + current);
  console.log(h<=sum?'Yes':'No');
}
main(require("fs").readFileSync("/dev/stdin", "utf8").split('\n'));