open System

[<EntryPoint>]
let main argv =
    let [|n; a; b|] = stdin.ReadLine().Split() |> Array.map int
    let s = [for c in stdin.ReadLine() -> c]

    let rec solve (x, y, z) =
        match z with
        | [] -> []
        | 'a' :: zs -> if (a + b > x) then "Yes" :: solve (x + 1, y, zs) else "No" :: solve(x, y, z.Tail)
        | 'b' :: zs -> if (a + b > x && b > y) then "Yes" :: solve (x + 1, y + 1, zs) else "No" :: solve(x, y, z.Tail)
        | _ -> "No" :: solve(x, y, z.Tail)
    solve (0, 0, s)
    |> String.concat "\n"
    |> stdout.WriteLine
    0
