function Main(input){
	input = input.split("\n");
	var mem = input[0].split(" ").map(Number);
	var arr = input[1].split("");
	var p = mem[1]+mem[2];
	var n = 0;
	var m = 0;
	for(var i=0;i<arr.length;i++){
		if(arr[i]=="a"){
			m++;
			console.log(m<=p?"Yes":"No");
		}else if(arr[i]=="b"){
			n++;
			m++;
			console.log(m<=p&&n<=p?"Yes":"No")
		}else{
			console.log("No")
		}
	}
}Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());