program ABC153B
    implicit none
    integer(8)::H,N,i
    integer(8),allocatable,dimension(:)::A
    read(5,*)H,N
    allocate(A(N))
    read(5,*)(A(i),i=1,N)

    if(sum(A)>=H)then
        print'(A)',"Yes"
    else
        print'(A)',"No"
    end if
end program ABC153B