# ATM with strange policy

There is a faulty ATM machine which only allows you to withdraw exactly $306 or deposit exactly$221 each time. If you try different amounts, it would reject your transaction.

You have $1000 in your bank account but$0 on you. You are desperate to get as much money out as possible. Using multiple transactions, what is the maximum net amount of money (in \$) that you can obtain?


Clarification: The answer is the sum of withdrawals minus the sum of deposits.

×