import java.util.Scanner


object Main {
  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)
    val n, a, b = sc.nextInt()
    val s = sc.next().toCharArray

    var now = 0
    var oversea = 0

    for (i <- s.indices) {
      s(i) match {
        case 'a' => if (now < a + b) {
          println("Yes")
          now += 1
        } else {
          println("No")
        }
        case 'b' => if (now < a + b && oversea < b) {
          println("Yes")
          now += 1
          oversea += 1
        } else {
          println("No")
        }
        case _ => println("No")
      }
    }

  }
}