main = do
 [n,a,b] <- map (read::String->Int) .words <$> getLine
 s <-  getLine
 mapM_ putStrLn .pre_1 (f s) a $b  
 

f ::String->[String]
f s = [[c] | c <- s] 

{-
pre_1 ::[String] -> Int -> Int -> [String]
pre_1 ("a":xs) a b | (a + b > 0) = "Yes" : (pre_1 xs (a-1) b)
pre_1 ("b":xs) a b | (a + b > 0) && (b > 0) = "Yes": (pre_1 xs a (b-1))
pre_1 (_:xs) _ _ = "No" :   (pre_1 xs a b)
-}

pre_1 ::[String] -> Int -> Int -> [String]
pre_1 (x:[]) a b 
 | (x=="a")&&(a + b > 0) = "Yes" : []
 | (x=="b")&&(a + b > 0) && (b > 0) = "Yes": []
 | otherwise = "No" :  []
pre_1 (x:xs) a b 
 | (x=="a")&&(a + b > 0) = "Yes" : (pre_1 xs (a-1) b)
 | (x=="b")&&(a + b > 0) && (b > 0) = "Yes": (pre_1 xs a (b-1))
 | otherwise = "No" :   (pre_1 xs a b)
