Given that $$\log_{10} \sin x + \log_{10} \cos x = -1$$ and that $$\log_{10} (\sin x + \cos x) = \frac{1}{2} (\log_{10} n - 1),$$ find $$n.$$

(第二十一届AIME1 2003 第4题)