program abc21
 implicit none
 integer::N,K,i,ia,ib
 integer,allocatable::a(:),b(:)
 read(*,*)N,K
 allocate(a(N))
 read(*,*)(a(i),i=1,N)
 allocate(b(N-K+1))
 do ia=1,N-K+1
  b(ia)=PRODUCT(a(ia:ia+K-1))
 end do
 do ib=1,N-K
  if(b(ib)<b(ib+1))then
   print'(a)',"Yes"
  else
   print'(a)',"No"
  end if
 end do
 deallocate(a,b)
end program abc21