A man borrow Rs. 10,000 at 5% per annum compound interest. He repays 35% of the sum borrowed at the end of the first year and 42% of the sum borrowed at the end of the second year. How much must be pay at the end of the third year in order to clear the debt?