The function $f(n)$ is defined on the positive integers and takes non-negative integer values. Given the conditions:

- $f(2) = 0$
- $f(3) > 0$
- $f(9999) = 3333$

and for all $m, n$:

\[ 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