A man deposited a certain amount in a bank that would repay double the amount after a year. At the
beginning of the second year, the man took out Rs 8000 and deposited the rest in the same bank. Again at the beginning of the third year, he took out Rs 8000 and deposited the rest in the same bank. At the beginning of the fourth year, he took out Rs 8000 as before but was not left with any balance in the bank. What was his initial deposit?