A number has three digits the tens digit is five When the hundreds digit and the ones digit Are switched the number increases by 495 what is the number