#include <iostream> 
using namespace std;
 
int main(){
	int N, A, B;
	string S;
	cin >> N >> A >> B >> S;
	int passinger = 0;
	int overseas_passinger = 0;
	for(int i = 0; i < N; i++){
		if(S[i] == 'a' && passinger < A + B){
			passinger++;
			cout << "Yes" << endl;
		}else if(S[i] == 'b' && passinger < A + B && overseas_passinger < B){
			passinger++;
			overseas_passinger++;
			cout << "Yes" << endl;
		}else{
			cout << "No" << endl;
		}
	}
}