Fill in numbers in the boxes below so that the sum of the entries in each three consecutive boxes is $2005$. What is the number that goes into the leftmost box?

[asy]
size(300);
label("999",(2.5,.5));
label("888",(7.5,.5));

draw((0,0)--(9,0));
draw((0,1)--(9,1));
for (int i=0; i<=9; ++i)
{
draw((i,0)--(i,1));
}
[/asy]