5. Find the smallest positive integer $n$ such that the equation $\left[\frac{10^{n}}{x}\right]=1989$ has an integer solution $x$.
(1989, Soviet Union Mathematical Olympiad)
(Hint: Using the inequality $\frac{10^{n}}{x}-1<\left[\frac{10^{n}}{x}\right] \leqslant \frac{10^{n}}{x}$, solve for $x=5026$, at this point $n=7$.)