#include <bits/stdc++.h>
using namespace std;

int main() {
	int n,a,b,i; char c;
	cin >> n >> a >> b;
	for(i=0; i<n; i++){
		cin >> c;
		if(c=='a'){
			if(a>0){
				cout << "Yes" << endl;
				a--;
			}else if(b>0){
				cout << "Yes" << endl;
				b--;
			}else{
				cout << "No" << endl;
			}
		}else if(c=='b' && b>0){
			cout << "Yes" << endl;
			b--;
		}else{
			cout << "No" << endl;
		}
	}
}
