7. An Unusual Client. A certain man brought 1000 dollars in one-dollar bills and 10 empty bags to the bank and, addressing the clerk, said:

- I would appreciate it if you could distribute this money into the bags in such a way that any amount of money I need can always be given out in one or several bags without opening any of them.

How should the money be distributed? The bank should be able to provide any required amount only once, and the amount is limited only by the size of the deposit. In other words, the depositor has the right to request any amount from 1 to 1000 dollars (the number of dollars must be a whole number).