program main
    implicit none
    integer(8):: h
    integer(4):: n
    integer(4), allocatable:: a(:)
    read*, h, n
    allocate(a(n))
    read*, a(:)
    if (sum(a(:)) >= h)then
        print*, 'Yes'
    else
        print*, 'No'
    end if
end program main