Let $S(n)$ be the sum of digits for any positive integer $n$ (in decimal notation). Let $N=\sum_{k=10^{2003}}^{10^{2004}-1} S(k)$. Determine $S(N)$.

Let's think step by step and output the final answer within \boxed{}.
user