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

S = eval(input())



yosen = 0

overseas = 0

for i in range(N):

  if S[i] == "c":

    print("No")

  elif yosen < A + B:

    if S[i] == "a":

      print("Yes")

      yosen += 1

    elif S[i] == "b" and overseas < B:

      print("Yes")

      yosen += 1

      overseas += 1

    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())
yosen = 0
overseas = 0
for i in range(N):
    if S[i] == "c":
        print("No")
    elif yosen < A + B:
        if S[i] == "a":
            print("Yes")
            yosen += 1
        elif S[i] == "b" and overseas < B:
            print("Yes")
            yosen += 1
            overseas += 1
        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)

-yosen = 0 -overseas = 0 -for i in range(N): -    if S[i] == "c": -        print("No") -    elif yosen < A + B: -        if S[i] == "a": -            print("Yes") -            yosen += 1 -        elif S[i] == "b" and overseas < B: -            print("Yes") -            yosen += 1 -            overseas += 1 -        else: -            print("No") -    else: -        print("No") +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)