n,a,b=list(map(int, input().split()))

s=eval(input())

pass_all=0

pass_foreigner=0



for i in range(n):

    if s[i]=='a':

        if pass_all<a+b:

            pass_all+=1

            print("Yes")

        else:

            print("No")

    

    elif s[i]=='b':

        if pass_all<a+b and pass_foreigner<b:

            pass_all+=1

            pass_foreigner+=1

            print("Yes")

        else:

            print("No")

    

    else:

        print("No")
n,a,b=list(map(int, input().split()))

s=eval(input())

pass_all=0

pass_foreigner=0



for i in range(n):

    if s[i]=='a' and pass_all<a+b:

        pass_all+=1

        print("Yes")

    elif s[i]=='b' and pass_all<a+b and pass_foreigner<b:

        pass_all+=1

        pass_foreigner+=1

        print("Yes")

    else:

        print("No")
n, a, b = list(map(int, input().split()))
s = eval(input())
pass_all = 0
pass_foreigner = 0
for i in range(n):
    if s[i] == "a":
        if pass_all < a + b:
            pass_all += 1
            print("Yes")
        else:
            print("No")
    elif s[i] == "b":
        if pass_all < a + b and pass_foreigner < b:
            pass_all += 1
            pass_foreigner += 1
            print("Yes")
        else:
            print("No")
    else:
        print("No")

n, a, b = list(map(int, input().split()))
s = eval(input())
pass_all = 0
pass_foreigner = 0
for i in range(n):
    if s[i] == "a" and pass_all < a + b:
        pass_all += 1
        print("Yes")
    elif s[i] == "b" and pass_all < a + b and pass_foreigner < b:
        pass_all += 1
        pass_foreigner += 1
        print("Yes")
    else:
        print("No")

-    if s[i] == "a": -        if pass_all < a + b: -            pass_all += 1 -            print("Yes") -        else: -            print("No") -    elif s[i] == "b": -        if pass_all < a + b and pass_foreigner < b: -            pass_all += 1 -            pass_foreigner += 1 -            print("Yes") -        else: -            print("No") +    if s[i] == "a" and pass_all < a + b: +        pass_all += 1 +        print("Yes") +    elif s[i] == "b" and pass_all < a + b and pass_foreigner < b: +        pass_all += 1 +        pass_foreigner += 1 +        print("Yes")