import java.io.*
import java.util.*
import kotlin.collections.*

object FastReader {
    private val br = BufferedReader(InputStreamReader(System.`in`))
    private var st: StringTokenizer = StringTokenizer(br.readLine())

    fun next(): String {
        if (!st.hasMoreElements() ) {
            try {
                st = StringTokenizer(br.readLine());
            } catch (e: IOException) {
                e.printStackTrace();
            }
        }
        return st.nextToken();
    }

    fun nextInt() = next().toInt()

    fun nextLong() = next().toLong()

    fun nextDouble() = next().toDouble()
}


fun main(args: Array<String>) {
    FastReader.nextInt()
    val a = FastReader.nextInt()
    val b = FastReader.nextInt()
    val s = FastReader.next()!!

    var c1 = 0
    var c2 = 0
    val ans = mutableListOf<String>()
    for (c in s) {
        if ((c == 'a') && (c1 < a+b)) {
            ans.add("Yes")
            c1++
        } else if ((c == 'b') && (c1 < a+b) && (c2 < b)) {
            ans.add("Yes")
            c1++
            c2++
        } else {
            ans.add("No")
        }
    }
  
  	println(ans.joinToString("\n"))
}
