object Main extends App {
  import scala.io.StdIn.readLine

  	var winState = readLine.split(" ").map(_.toInt)
    var a = winState(1) + winState(2)
  	var b = winState(2)
    var players = readLine.toString

  for (s <- players) {
      if(s == 'a' && a>0){a -= 1; println("Yes");}
      else if(s == 'b' && a>0 && b>0){a -= 1; b -= 1; println("Yes");}
      else println("No")
  }
}
