import Data.List

main :: IO ()
main = getLine >>= main' . fmap read . words
    where
        main' [n, a, b] = getLine >>= mapM_ putStrLn . solve a b

solve :: Int -> Int -> String -> [String]
solve a b = walk 0 0
    where
        walk a' b' ('a' : xs')
            | a' + b' < a + b = "Yes" : walk (a' + 1) b' xs'
            | otherwise = "No" : walk a' b' xs'
        walk a' b' ('b' : xs')
            | a' + b' < a + b && b' < b = "Yes" : walk a' (b' + 1) xs'
            | otherwise = "No" : walk a' b' xs'
        walk a' b' (_ : xs')  = "No" : walk a' b' xs'
        walk _ _ _ = []
