import Control.Monad
import Data.Bool

solve a b = tail . map thd . scanl f (0, 0, True) where
  f (n,m,_) c
    | c == 'a' && n < a+b = (n+1, m, True)
    | c == 'b' && n < a+b && m < b = (n+1, m+1, True)
    | otherwise = (n, m, False)

main = do
  [_,a,b] <- map read.words <$> getLine
  s <- getLine
  mapM_ (putStrLn.bool "No" "Yes") $ solve a b s

thd (_,_,a) = a