Let $S$ be the set of all perfect squares whose rightmost three digits in base $10$ are $256$. Let $T$ be the set of all numbers of the form $\frac{x-256}{1000}$, where $x$ is in $S$. In other words, $T$ is the set of numbers that result when the last three digits of each number in $S$ are truncated. Find the remainder when the tenth smallest element of $T$ is divided by $1000$.