#include<iostream>
using namespace std;
int main(){
  int n,a,b,i,abc,bc;abc = bc = 0;char s;cin >> n >> a >> b;
  for(i=0;i<n;i++){
    cin >> s;
    if (s == 'a' && abc < a+b){
      cout << "Yes" << endl;abc++;
    } else if (s == 'b' && abc < a+b && bc < b){
      cout << "Yes" << endl;abc++;bc++;
    } else cout << "No" << endl;
  }
}
      
  