import io.StdIn.readLine


object Main {

  def main(args: Array[String]): Unit = {
    val Array(n, a, b) = readLine().split(' ').map(_.toInt)
    val s = readLine()

    var n_a, n_b = 0
    for (i <- 0 to (n - 1)) {
      s(i) match {
        case 'a' =>
          n_a = n_a + 1
          if (n_a + (if (n_b > b) b else n_b) <= a + b) println("Yes")
          else println("No")
        case 'b' =>
          n_b = n_b + 1
          if (n_b <= b && n_a + n_b <= a + b) println("Yes")
          else println("No")
        case 'c' => println("No")
      }
    }
  }

}
