The function $f$ is defined on the set of integers and satisfies $f(n)=\begin{cases} n-3&{if}\ n\ge 1000\\ f(f(n+5))&{if}\ n<1000\end{cases}$ Find $f(84)$ .

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