Let $n$ be an odd integer and let $f$ be a permutation of $\left\{1,2,\ldots,n\right\}$. Show that the number
\begin{equation}x = (1-f(1))\cdot(2-f(2))\cdot...(n-f(n))\end{equation} is even.
I don't understand how the Pigeonhole principle can apply to this problem. Any help is appreciated.
Hint: $x$ is even if at least one of the numbers $i-f(i)$ is even.