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