Find the largest integer $x<1000$ such that $\left(\begin{array}{c}1515 \\ x\end{array}\right)$ and $\left(\begin{array}{c}1975 \\ x\end{array}\right)$ are both odd.

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