Let $S$ be the set of all rational numbers that can be expressed as a repeating decimal in the form $0.\overline{abcde},$ where at least one of the digits $a,$ $b,$ $c,$ $d,$ or $e$ is nonzero. Let $N$ be the number of distinct numerators obtained when numbers in $S$ are written as fractions in lowest terms. For example, both $4$ and $1234$ are counted among the distinct numerators for numbers in $S$ because $0.\overline{00004}=\frac{4}{99999}$ and $0.\overline{01234}=\frac{1234}{99999}.$ Find the remainder when $N$ is divided by $1000.$