let () =
  Scanf.scanf "%d %d\n" @@ fun n k ->
  let arr = Array.init n @@ fun _ -> Scanf.scanf "%d " @@ fun d -> d in
  for i = k + 1 to n do
    if arr.(i-1) > arr.(i-k-1) then print_endline "Yes"
    else print_endline "No"
  done;