main=do
 [n,a,b]<-map read.words<$>getLine
 getLine>>=putStr.unlines.f a b
f a b[]=[]
f a b(c:s)
 |c=='a'&&a>0="Yes":f(a-1)b s
 |c=='a'&&a==0&&b>0="Yes":f a(b-1)s
 |c=='a'="No":f a b s
 |c=='b'&&b>0="Yes":f a(b-1)s
 |c=='b'="No":f a b s
 |c=='c'="No":f a b s