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).
7. Ten bags should contain respectively \(1,2,4,8\), \(16,32,64,128,256\) and 489 one-dollar bills. The first nine numbers form a geometric progression. If the sum of this progression is subtracted from 1000, the result is the contents of the tenth bag.