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

S = eval(input())



jp = 0

os = 0

for s in S:

  ans = "No"

  if jp + os < A + B:

    if s == "a":

      jp += 1

      ans = "Yes"

    if s == "b" and os < B:

      os += 1

      ans = "Yes"

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

s = eval(input())

cnt = 0

x = 0

for i in range(n):

    if s[i] == "a":

        if cnt < a+b: 

            cnt += 1

            print("Yes")

        else: print("No")

    elif s[i] == "b":

        if cnt < a+b and x+1 <= b:

            cnt += 1

            x += 1

            print("Yes")

        else: print("No")

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

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

-N, A, B = list(map(int, input().split())) -S = eval(input()) -jp = 0 -os = 0 -for s in S: -    ans = "No" -    if jp + os < A + B: -        if s == "a": -            jp += 1 -            ans = "Yes" -        if s == "b" and os < B: -            os += 1 -            ans = "Yes" -    print(ans) +n, a, b = list(map(int, input().split())) +s = eval(input()) +cnt = 0 +x = 0 +for i in range(n): +    if s[i] == "a": +        if cnt < a + b: +            cnt += 1 +            print("Yes") +        else: +            print("No") +    elif s[i] == "b": +        if cnt < a + b and x + 1 <= b: +            cnt += 1 +            x += 1 +            print("Yes") +        else: +            print("No") +    else: +        print("No")