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

S = input()

total = 0
abroad = 0

for s in S:
  if s == 'a' and total < (A+B):
    print('Yes')
    total += 1
  elif s == 'b' and total < (A+B) and abroad < B:
    print('Yes')
    total += 1
    abroad += 1
  else:
    print('No')
bce90d90275d19a7ec3f98d091d71cd85b00cd71
<mask token>

<mask token>
for s in S:
    if s == 'a' and total < A + B:
        print('Yes')
        total += 1
    elif s == 'b' and total < A + B and abroad < B:
        print('Yes')
        total += 1
        abroad += 1
    else:
        print('No')

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

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

S = input()

total = 0
abroad = 0

for s in S:
  if s == 'a' and total < (A+B):
    print('Yes')
    total += 1
  elif s == 'b' and total < (A+B) and abroad < B:
    print('Yes')
    total += 1
    abroad += 1
  else:
    print('No')