import Data.List
import Control.Monad

make::Int->Int->[Int]
make 0 _ = []
make n k = [k] ++ make (n-1) k

func::[Int]->Int->[Int]
func xs x = map pred (take (x-1) xs) ++ [xs !! (x-1)] ++ map pred (drop x xs)

func2::[Int]->[Int]->[[Int]]
func2 [] _ = []
func2 as ans = [answer] ++ func2 (tail as) answer
    where
        answer = func ans (head as)

func3::[Int]->[String]
func3 xs = map (\x-> if x > 0 then "Yes" else "No") xs

main::IO ()
main = do
    [n,k,q] <- map read . words <$> getLine
    as <- replicateM q readLn :: IO  [Int]
    if k > q then replicateM n (putStrLn "Yes") else do
        let ans = make n k
        mapM_ putStrLn $ func3 $ last $ func2 as ans