Digits on the Pages
A book's pages are numbered 1..N. How many DIGITS are printed in total?
Input: one integer N.
Output: the total digit count.
Constraints:
- 1 ≤ N ≤ 1018
Sample Tests
Input 1
13
Output 1
17
Input 2
9
Output 2
9
Discussion (opens after you solve — no spoilers before)
No comments yet.