function Main(input) {
  var input = input.split("\n");
  var data = input[0].split(" ");
  var N = parseInt(data[0]);
  var A = parseInt(data[1]);
  var B = parseInt(data[2]);
  var string = input[1];

  var count = 0;
  var abroadRank = 0;

  for(var i= 0; i < string.length; i++){
    if(string.charAt(i) == "a"){
      if(count < (A+B)){
        count++;
        console.log("Yes");
      }else{
        console.log("No");
      }
    }else if(string.charAt(i) == "b"){
      abroadRank++;
      if(count < (A+B) && abroadRank <= B){
        count++;
        console.log("Yes");
      }else{
        console.log("No");
      }
    }else{
      console.log("No");
    }
  }

}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));