Keerthi's father gave him some money to buy books. He spent half of the money equally to buy books and entertaining his friends. Whatever amount left with him, he deposited half in his savings account and gave Rs. 5 to a poor person as charity. Finally, Keerthi was left with Rs. 20 which he returned to his father. What amount did his father give him initially?