After deduction of 5 % from a certain sum and then 10 % from the remainder, a sum of Rs. 171 is left. The original sum was.