import Control.Monad

main :: IO ()
main = do
  [n,a,b] <- map read . words <$> getLine
  s <- getLine
  forM_ (solve s a b 0 0) $ \t -> putStrLn $ case t of
    True -> "Yes"
    False -> "No"

solve :: [Char] -> Int -> Int -> Int -> Int -> [Bool]
solve [] _ _ _ _ = []
solve (c:cs) a b po fo = case c of
  'a' -> if po < a+b
    then True : solve cs a b (po+1) fo
    else False : solve cs a b po fo
  'b' -> if po < a+b && fo < b
    then True : solve cs a b (po+1) (fo+1)
    else False : solve cs a b po fo
  'c' -> False : solve cs a b po fo