
import scala.io.StdIn
object Main {
  def main(args: Array[String]): Unit = {
    val N = StdIn.readLine().split(" ").map(_.toInt)
    val A = N(1)
    val B = N(2)
    val S = StdIn.readLine()
    var aCounter = 0
    var bCounter = 0
    S.toCharArray.foreach{
      case 'a' =>
        if((aCounter + bCounter) < A + B) {
          println("Yes")
          aCounter += 1
        } else
          println("No")
      case 'b' =>
        if(bCounter < B && (aCounter + bCounter) < A + B) {
          println("Yes")
          bCounter += 1
        } else {
          println("No")
        }
      case _ => println("No")
    }
  }

}
