The sum of three numbers is $2009$. The sum of the first two numbers is $1004$ and the sum of the last two is $1005$. What is the product of all three numbers?