The function $f(n)$ is defined on the positive integers and takes non-negative integer values. It is given that $f(2) = 0$, $f(3) > 0$, and $f(9999) = 3333$. For all positive integers $m$ and $n$, the following condition holds:
\[ f(m+n) - f(m) - f(n) = 0 \text{ or } 1. \]
Determine the value of $f(1982)$.

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