import Control.Monad
  
pat par (x:xs) = pat (pat' $ splitAt x par) xs
 where
  pat' (a,b:c)  = map pred (a++(succ b):c)
pat par [] = par

fil x
 |x>0 = "Yes"
 |otherwise = "No"

main = do
 [n,k,q] <- map read . words <$> getLine
 ans <- map pred <$> replicateM q readLn :: IO [Int]
 mapM_ putStrLn $ map (fil) $ pat (replicate n k) ans