import Control.Monad

main :: IO ()
main = do
  [n, a, b] <- map read . words <$> getLine
  s <- getLine
  forM_ (solve (a, b) s) $ \i -> putStrLn $ if i then "Yes" else "No"

solve :: (Int, Int) -> String -> [Bool]
solve _ [] = []
solve (a, b) (s:ss) = case s of
  'a' -> if a /= 0 then True : solve (a-1, b) ss else False : solve (a, b) ss
  'b' -> if b /= 0 then True : solve (a, b-1) ss else False : solve (a, b) ss
  otherwise -> False : solve (a, b) ss
