program atcoder
    use Sort_Module
    implicit none
    integer :: n,a,b,kaku,i,l
    character :: s*100009
    read*,n,a,b,s
    l = len(trim(s))
    kaku = a+b
    do i=1,l
        if(s(i:i)=='a' .and. kaku>0)then
            kaku = kaku - 1
            write(*,'(a)')"Yes"
        else if(s(i:i)=='b' .and. b>0 .and. kaku>0)then
            b = b - 1
            kaku = kaku - 1
            write(*,'(a)')"Yes"
        else
            write(*,'(a)')"No"
        endif
    enddo
    stop 
contains
end program atcoder