module Main where

import Control.Monad

main :: IO ()
main = do
    [n,k,q] <- take 3 . map read . words <$> getLine
    qs <- join <$> getInt_LN q 1
    mapM_ (print . sayYes) $ map ((<)0) . reducePoint qs . take n $ repeat k
    where
        getInt_LN :: Int -> Int -> IO [[Int]]
        getInt_LN l n = replicateM l $ getInt_N n
        getInt_N :: Int -> IO [Int]
        getInt_N n = take n.map read.words <$> getLine

sayYes True = "Yes"
sayYes _ = "No"

reducePoint :: [Int] -> [Int] -> [Int]
reducePoint [] ps = ps
reducePoint (q:qs) ps = reducePoint qs newps
    where
        (q1,(tgt:q2)) = splitAt (q-1) ps
        newps = minus1all q1 ++ (tgt : minus1all q2)

minus1all = map (flip (-) 1)

