Let $p = 10009$ be a prime number. Determine the number of ordered pairs of integers $(x, y)$ such that $1 \leq x, y \leq p$ and $x^3 - 3xy + y^3 + 1$ is divisible by $p$.

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