program main
    use,intrinsic :: iso_fortran_env
    implicit none
    integer(int64):: n,k
    integer(int64), allocatable:: a(:)
    integer(int64):: i

    read*, n,k
    allocate(a(n))
    read*, a(:)

    do i=k+1,n
        if (a(i) > a(i-k)) then
            print'(a)', 'Yes'
        else
            print'(a)', 'No'
        end if
    end do
end program main