f _ _ [] = []
f a b ('a':s) | a+b>0 = "Yes" : f (a-1) b s
f a b ('b':s) | a+b>0 && b>0 = "Yes" : f a (b-1) s
f a b (_:s) = "No" : f a b s
main = do
  [_,a,b] <- fmap (map read . words) getLine
  s <- getLine
  mapM_ putStrLn $ f a b s