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

S = input()



ans = []

inout = out = 0

for c in S:

    if c=='a':

        if inout < A+B:

            inout += 1

            ans.append('Yes')

        else:

            ans.append('No')

    elif c=='b':

        if inout < A+B and out < B:

            inout += 1

            out += 1

            ans.append('Yes')

        else:

            ans.append('No')

    else:

        ans.append('No')

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

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 = map(int, input().split())
S = input()
ans = []
inout = out = 0
for c in S:
    if c == "a":
        if inout < A + B:
            inout += 1
            ans.append("Yes")
        else:
            ans.append("No")
    elif c == "b":
        if inout < A + B and out < B:
            inout += 1
            out += 1
            ans.append("Yes")
        else:
            ans.append("No")
    else:
        ans.append("No")
print(*ans, sep="\n")

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")

+a = b = 0 -inout = out = 0 -        if inout < A + B: -            inout += 1 +        if a + b < A + B: +            a += 1 -        if inout < A + B and out < B: -            inout += 1 -            out += 1 +        if a + b < A + B and b < B: +            b += 1