Ajit opens a bank account by depositing Rs 20,000. At the end of each year, he withdraws a sum of money that makes the balance exactly half of what it was in the beginning of the year. If the bank pays 10% interest, what is the total amount withdrawn by Ajit at the end of three years?