A number has a 5 in the tens place. The number of ones is 3 less than the number of tens. The number of hundreds is 1 less than the number of ones. What is the number?