Handle numbers greater than 1000