do i=0 to 1e3 if charin()=Y then say i end