A printer numbers the pages of a book starting from 1 and uses a total 1089 digits in all. How many pages does the book have?
A librarian used 2893 digits to number the pages of a book. How many pages does the book have?