import Control.Monad
  
pat' (a,b:c)  = map pred (a++(succ b):c)
pat par 0 = return par
pat par n = do
 k<- pred <$>readLn :: IO Int
 pat (pat' $ splitAt k par) (n-1)


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) q