local read = io.read
local N, K = read("*n", "*n")

local A = {}
for i = 1, N do
	A[i] = read("*n")
end

local out = {}
for i = 1, N - K do
	if A[i + K] / A[i] > 1 then
		out[i] = "Yes"
	else
		out[i] = "No"
	end
end

print(table.concat(out, "\n"))
