14. The function $f(x)$ defined on $\mathbf{R}$ satisfies $\left\{\begin{array}{l}f(x+2016) \leqslant f(x)+2016, \\ f(x+2017) \geqslant f(x)+2017,\end{array}\right.$ and $f(1)=2$. Let $a_{n}=f(n)\left(n \in \mathbf{N}^{*}\right)$, then $a_{2018}=$ $\qquad$