main=interact(\t->unlines[show n|(n,y)<-zip[0..]t,y=='Y'])