      PROGRAM piyo
      IMPLICIT NONE
      integer(16) :: h,n
      integer(16),allocatable :: a(:)
      
      read*,h,n
      allocate(a(n))
      read*,a(:)
      
      if( sum(a)>=h )then
        print*,'Yes'
      else
        print*,'No'
      end if
      
      
      
      
      
      END PROGRAM