let N,A,B = stdin.ReadLine().Split() |> Array.map int |> fun x -> x.[0], x.[1], x.[2]
let S = stdin.ReadLine().ToCharArray() |> Array.indexed
let foreignStudent = S |> Array.filter( fun (_,c) -> c = 'b') |> Array.length

let mutable bCounter = 0
let mutable winCount = 0

let ans = S |> Array.map(fun (index,c) ->
        match c with
        | 'a' -> 
            if (winCount) < (A+B) then 
                winCount<- winCount+1
                "Yes" 
            else 
                "No"
        | 'b' -> 
            bCounter<- bCounter+1
            if (winCount) < (A+B) && bCounter <= B then 
                winCount<-winCount+1
                "Yes" else "No"
        | _ -> "No"
    )
ans |> Array.iter (fun x -> printfn "%s" x)