import java.util.*
object MainKt {
  @JvmStatic fun main(args:Array<String>) {
    val nab=readLine()!!.split(" ")
    val S=readLine()!!
    val N=nab[0].toInt()
    val A=nab[1].toInt()
    val B=nab[2].toInt()

    var foreign=0
    var passed=0
    (0..(N-1)).forEach {
      when(S[it])
      {
        'a' -> 
        {
          if(passed < A+B)
          {
            passed++
            println("Yes")
          }
          else
          {
            println("No")
          }
        }
        'b'->
        {
          foreign++
          if (passed < A+B)
          {
            if (foreign <= B)
            {
              
              passed++
              println("Yes")
            } 
            else 
            {
              println("No")
            }
          }
          else 
          {
            println("No")
          }
        }
        else -> println("No")
      }
    }
  }
}
