"use strict";
const Main = (input) =>{
   let xs = input.trim().split('\n');
   let xs1 = xs[0].trim().split(' ').map(v=>parseInt(v,10));
   let xs2 = xs[1].trim().split(' ').map(v=>parseInt(v,10));
   let HP = xs1[0];
   let N = xs1[1];
   let attack = 0
   
   for(let i =0; i<N; i++){
      attack +=xs2[i]; 
   }
   if(HP <= attack){
   	 console.log('Yes');
   }else{
     console.log('No');
   }

}
Main(require('fs').readFileSync('/dev/stdin','utf8'));