import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N, A, B = sc.nextInt
  sc.nextLine
  val S = sc.nextLine

  var a = 0
  var b = 0
  S.foreach({
    case 'a' =>
      if (a + b < A + B) {
        a += 1
        println("Yes")
      } else {
        println("No")
      }
    case 'b' =>
      if (a + b < A + B && b + 1 <= B) {
        b += 1
        println("Yes")
      } else {
        println("No")
      }
    case _ => println("No")
  })
}
