program CODE_FESTIVAL2016qBB
    implicit none
    integer(8)::N,A,B,count_B,i,flg,pass
    character(100000)::S
    read*,N,A,B,S
    count_B=0
    pass=0
    do i=1,N
        flg=0
        if(S(i:i)=="a")then
            if(pass<A+B)then
                flg=1
                pass=pass+1
            end if
        end if
        if(S(i:i)=="b")then
            count_B=count_B+1
            if(pass<A+B.and.count_B<=B)then
                flg=1
                pass=pass+1
            end if
        end if

        if(flg==0)print'(A)',"No"
        if(flg==1)print'(A)',"Yes"
    end do
end program CODE_FESTIVAL2016qBB