< RANT >
There is really no excuse for your program to not work
on the given test cases. Nor is there an excuse for the
spelling, spacing, or other forms of the output to be wrong.
< /RANT>
READ THE SPECIFICATION.
Naming constants after numbers is not a good idea.
const long THOUSAND = 1000;
Do computations once and store the result in a variable.
For resubmissions, I may only comment on one of many violations. Please FIX EVERYTHING.
If you don't understand the feedback, Please come and ask.