"use strict"
function Main(input) {
  input = input.split('\n');
  let i1 = input[0].trim().split(' ').map(Number);
  let a = input[1].trim().split(' ').map(Number);
  let h = i1[0];
  let n = i1[1];
  let max = a.reduce((acc, val) => {
    return acc+=val;
  })
 
  console.log(h <= max ? 'Yes' : 'No')
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));