try changing the input to a number outside of the range like (1000, 0, or -1) and see what gets returned in output. That will set you on the right path.