#include<iostream>
#include<string>
using namespace std;

int main()
{
	
	int N, A, B, cntA = 0, cntB = 0;
	string str;
	
	cin >> N >> A >> B;
	cin >> str;
	
	for(int i=0; i<N ; i++) {
		if(str[i] == 'a' && (cntA + cntB) < (A + B)){
			cntA++;
			cout << "Yes" << endl;
		}
		else if(str[i] == 'b' && (cntA + cntB) < (A + B) && cntB < B){
			cntB++;
			cout << "Yes" << endl;
		}
		else cout << "No" << endl;
	}
	
	return 0;
}
