
import Foundation


//  input

var strArray = readLine()
var S = readLine()


// INPUT STRING ARRAY split with " "
func arrOfString(_ data : String) -> [String] {
    return data.characters.split(separator: " ").map({ String($0) })  // a b c d e f -> ["a" , "b", "c", "d"]
}

// GET part of String
func getStringUsingIndex1(start : Int , end : Int , str : String) -> String {
    return str[str.startIndex.advancedBy(start)...str.startIndex.advancedBy(end)]
    
}



var arr = arrOfString(strArray!)
var N = Int(arr[0])!
var A = Int(arr[1])!
var B = Int(arr[2])!

var moneOfPass = 0
var moneOfB = B


for i in 0 ... N-1 {
    if moneOfPass < (A + B) {
        var charI = getStringUsingIndex1(start : i,end : i,str : S!)
        if charI == "a"  {
            print("Yes")
            moneOfPass += 1
        } else if charI == "b" && (moneOfB > 0) {
            print("Yes")
            moneOfB -= 1
            moneOfPass += 1
        } else {
            print("No")
        }
        
    } else {
        print("No")
    }
}