import Data.List
main=do
    [n,a,b]<-map read.words<$>getLine::IO[Int]
    s<-getLine
    putStr $ unlines $ f 0 1 a b s
f _ _ _ _ [] = []
f c o a b ('c':s) = "No" : f c o a b s
f c o a b ('a':s)
    | c < a+b = "Yes" : f (c+1) o a b s
    | otherwise = "No" : f c o a b s
f c o a b ('b':s)
    | c < a+b && o <= b = "Yes" : f (c+1) (o+1) a b s
    | otherwise = "No" : f c o a b s