Prelims CSAT July 17, 2025

A printer numbers the pages of a book starting with 1 and uses 3089 digits in all. How many pages does the book have?