// parameter "input" gets all data
function Main(input) {
	// the first line is assigned to input[0], the second line is assigned to input[1] similarly.
  var input = input.split("\n");
  var N = parseInt(input[0].split(' ')[0]);
  var A = parseInt(input[0].split(' ')[1]);
  var B = parseInt(input[0].split(' ')[2]);
  var participants = input[1].split('');
  // var arr = tmp.map(function(n){return parseInt(n)});

  var tracker = 0;

  for (var i=0, len=participants.length; i<len; i++){
    switch (participants[i]) {
      case 'a':
        if (tracker<(A+B)){
          console.log('Yes\n');
          tracker++;
        }else{
          console.log('No\n');
        }
        break;
      case 'b':
        if((tracker<(A+B))){
          console.log('Yes\n');
          tracker++;
        }else{
          console.log('No\n');
        }
        break;
      case 'c':
        console.log('No\n');
        break;
      default:
        console.log('No\n');
    }

  }

	//output
	// console.log(max_iteration);
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
