Find all triples consisting of a prime number and two positive integers and such that and are both powers of .
(Belgium)
Find all triples $(p, x, y)$ consisting of a prime number $p$ and two positive integers $x$ and $y$ such that $x^{p-1} + y$ and $x + y^{p-1}$ are both powers of $p$.
\begin{flushright}\emph{(Belgium)}\end{flushright}