Dictionaries often have a lot of pages.
A publisher published a dictionary. When it was finished, they found that exactly 2981 digits of numbers are used just for printing the page number.
Given that every page has a numeric page number printed and the page number starts from 1. Find the number of pages in this dictionary.