Find all positive integers n for which both $\frac{1}{n}$ and $\frac{1}{n+1}$ are finite decimal fractions. Provide the sum of all such n values.

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