What is the total number of digits used to write all integers from 111 to 999999?
171171171
189189189
180180180
162162162