program MSOLUTIONSC
    implicit none
    integer(8)::N,K,i,l,r
    integer(8),allocatable,dimension(:)::A
    read*,N,K
    allocate(A(N))
    read*,A

    l=A(1)
    do i=2,N-K+1
        if(A(i+K-1)>l)then
            print'(A)',"Yes"
        else
            print'(A)',"No"
        end if
        l=A(i)
    end do
end program MSOLUTIONSC