object Main{
  def main(args: Array[String]): Unit={
    val in = readLine.split(" ").map(_.toInt) 
    val n = in(0)
    val a = in(1)
    val b = in(2)
    
    val s = readLine()
    var cnt=0
    var cntb=0
    for(i <- 0 to n-1){
      if(s(i) == 'a'){
        if(a+b > cnt){
          println("Yes")
          cnt+=1
        }
        else{
          println("No")
        } 
      }
      else if(s(i) =='b'){
        if(cnt < (a+b) && cntb < b){
          println("Yes")
          cnt+=1
        }
        else println("No")
        cntb+=1
      }
      else println("No")
    }
  }
}