Finding the Last Digit