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

t, o = 0, 0

s = eval(input())

for i in range(n):

    if s[i]=="a":

        t += 1

        if t <= a+b:

            print("Yes")

        else:

            print("No")

    elif s[i]=="b":

        o += 1

        if o <= b and t < a+b:

            t += 1

            print("Yes")

        else:

            print("No")

    else:

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

s = eval(input())

c = 0

d = 1

for i in range(n):

    if s[i] == "a" and c <(a+b):

        print("Yes")

        c += 1

    elif s[i] == "b" and c < (a+b) and d <= b:

        print("Yes")

        c += 1

        d += 1

    else:

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

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

-t, o = 0, 0 +c = 0 +d = 1 -    if s[i] == "a": -        t += 1 -        if t <= a + b: -            print("Yes") -        else: -            print("No") -    elif s[i] == "b": -        o += 1 -        if o <= b and t < a + b: -            t += 1 -            print("Yes") -        else: -            print("No") +    if s[i] == "a" and c < (a + b): +        print("Yes") +        c += 1 +    elif s[i] == "b" and c < (a + b) and d <= b: +        print("Yes") +        c += 1 +        d += 1