object Main extends App {
  @scala.annotation.tailrec
  def loop(chars: List[Char], a: Int, b: Int, result: Vector[String]): Vector[String] = chars match {
    case List() => result
    case x::xs => x match {
      case 'a' if 0 < a =>
        loop(xs, a - 1, b, result :+ "Yes")
      case 'a' if 0 < b =>
        loop(xs, 0, b - 1, result :+ "Yes")
      case 'b' if 0 < b =>
        loop(xs, a, b - 1, result :+ "Yes")
      case _ =>
        loop(xs, a, b, result :+ "No")
    }
  }
  val sc = new java.util.Scanner(System.in)
  val _, a, b = sc.nextInt()
  val s = sc.next().toCharArray.toList
  loop(s, a, b, Vector.empty).foreach(println)
}