import java.io.*
import java.util.*

fun main(args: Array<String>) = Scanner(System.`in`).use {
    it.nextInt()
    val a = it.nextInt()
    val b = it.nextInt()
    val s = it.next()!!

    var c1 = 0
    var c2 = 0
    for (c in s) {
        if ((c == 'a') && (c1 < a+b)) {
            println("Yes")
            c1++
        } else if ((c == 'b') && (c1 < a+b) && (c2 < b)) {
            println("Yes")
            c1++
            c2++
        } else {
            println("No")
        }
    }
}