Problem 2. The quadratic function $f(x)=-x^{2}+4 p x-p+1$ is given. Let $S$ be the area of the triangle with vertices at the intersection points of the parabola $y=f(x)$ with the $x$-axis and the vertex of the same parabola. Find all rational $p$, for which $S$ is an integer.