We define $\lfloor x \rfloor$ as the largest integer less than or equal to $x$. What is
\[ \left\lfloor \frac{5^{2017015}}{5^{2015}+7} \right\rfloor \mod 1000?\]

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