You have ten bags and 1000 one rupee coins...

you fill 1000 one rupee coin in 10 bags....

The problem is...

When i ask the number between 1 to 1000...you show the count using the bags...

For example...

you fill each bag with 100 one rupee coin...so totally 1000..ok.

if i ask 500 then u show the count using 5 bags..100+100+100+100+100

but if i ask 450 then how u show the count...no way to show the count...

So there is a problem..i will ask any number between 1 to 1000...