A function $f$ is defined recursively by $f(1)=f(2)=1$ and \[f(n)=f(n-1)-f(n-2)+n\] for all integers $n \geq 3$. Find the value of $f(2018)$.

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