Let N\mathbb{N} denote the set of positive integers. Determine all functions f ⁣:NNf\colon \mathbb{N}\to \mathbb{N} such that f(1)f(2)f(3)f(1)\leq f(2)\leq f(3)\leq \ldots and the numbers f(n)+n+1f(n) + n + 1 and f(f(n))f(n)f(f(n)) - f(n) are both perfect squares for every positive integer nn.