object Main extends App{
	val Array(n,a,b) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
    val s = scala.io.StdIn.readLine
    
    var passed = 0
    for(count <- 1 to n){
        s(count-1) match {
            case 'a' => if(passed < a+b){
                println("Yes")
                passed += 1
                }else println("No")
            case 'b' => if(passed < a+b && s.take(count).count(_ == 'b') <= b){
                println("Yes")
                passed += 1
                }else println("No")
            case 'c' => println("No")
        }
    }
}
