N,A,B = map(int,input().split())

S = input()



a = b = 0

ans = []

for c in S:

    if c=='a':

        if a+b < A+B:

            a += 1

            ans.append('Yes')

        else:

            ans.append('No')

    elif c=='b':

        if a+b < A+B and b < B:

            b += 1

            ans.append('Yes')

        else:

            ans.append('No')

    else:

        ans.append('No')

print(*ans, sep='\n')

N,A,B = list(map(int,input().split()))

S = eval(input())



ok = foreign = 0

for c in S:

    if c=='a':

        if ok < A+B:

            ok += 1

            print('Yes')

            continue

    elif c=='b':

        if ok < A+B and foreign < B:

            ok += 1

            foreign += 1

            print('Yes')

            continue

    print('No')
N, A, B = map(int, input().split())
S = input()
a = b = 0
ans = []
for c in S:
    if c == "a":
        if a + b < A + B:
            a += 1
            ans.append("Yes")
        else:
            ans.append("No")
    elif c == "b":
        if a + b < A + B and b < B:
            b += 1
            ans.append("Yes")
        else:
            ans.append("No")
    else:
        ans.append("No")
print(*ans, sep="\n")

N, A, B = list(map(int, input().split()))
S = eval(input())
ok = foreign = 0
for c in S:
    if c == "a":
        if ok < A + B:
            ok += 1
            print("Yes")
            continue
    elif c == "b":
        if ok < A + B and foreign < B:
            ok += 1
            foreign += 1
            print("Yes")
            continue
    print("No")

-N, A, B = map(int, input().split()) -S = input() -a = b = 0 -ans = [] +N, A, B = list(map(int, input().split())) +S = eval(input()) +ok = foreign = 0 -        if a + b < A + B: -            a += 1 -            ans.append("Yes") -        else: -            ans.append("No") +        if ok < A + B: +            ok += 1 +            print("Yes") +            continue -        if a + b < A + B and b < B: -            b += 1 -            ans.append("Yes") -        else: -            ans.append("No") -    else: -        ans.append("No") -print(*ans, sep="\n") +        if ok < A + B and foreign < B: +            ok += 1 +            foreign += 1 +            print("Yes") +            continue +    print("No")