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

S = eval(input())



a = b = 0



for s in S:

    if s == 'a':

        if a + b < A + B:

            print('Yes')

            a += 1

            continue

    elif s == 'b':

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

            print('Yes')

            b += 1

            continue

    print('No')

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

S=eval(input())

a,b,c=0,0,0

for s in S:

    if s=='a':

        a+=1

        if c < A+B:

            print('Yes')

            c+=1

        else:

            print('No')

    elif s=='b':

        b+=1

        if (c < A+B) and b <= B:

            print('Yes')

            c+=1

        else:

            print('No')

    else:

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

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

-a = b = 0 +a, b, c = 0, 0, 0 -        if a + b < A + B: +        a += 1 +        if c < A + B: -            a += 1 -            continue +            c += 1 +        else: +            print("No") -        if a + b < A + B and b < B: +        b += 1 +        if (c < A + B) and b <= B: -            b += 1 -            continue -    print("No") +            c += 1 +        else: +            print("No") +    else: +        print("No")