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