Question 50
The numbers $1$, $2$, $\ldots$, $2009$ are written on a board. Some of them are erased and the remainder of their sum divided with $13$ is written on the board. After a finite number of repetition of the above procedure only three numbers have left, two of which are $99$ and $999$. What is the third number?