The real numbers x and y are such that for any distinct prime odd p and q the number xp+yq is rational. Prove that x and y are rational numbers.