fun main(args: Array<String>) {
    val l1 = readLine()!!.split(" ").map{ it.toInt() }
    val s = readLine()!!
    val x = l1[1] + l1[2]
    var cnt = 0
    var cntb = 0
    for (i in 0 until l1[0]) {
        if (s[i] == 'a') {
            if (cnt < x) {
                cnt++
                println("Yes")
            } else {
                println("No")
            }
        } else if (s[i] == 'b') {
            cntb++
            if (cnt < x && cntb <= l1[2]) {
                cnt++
                println("Yes")
            } else {
                println("No")
            }
        } else {
            println("No")
        }
    }
}