Two operations are allowed: (i) to write two copies of number $1$; (ii) to replace any two identical numbers $n$ by $(n + 1)$ and $(n - 1)$. Find the minimal number of operations that required to produce the number $2005$ (at the beginning there are no numbers). (8 points)