Problems
Formatting
Formatting
Rybka is going to format Watson’s hard drive partition. This partition should contain \textbf{N} sectors, sequentially numbered with decimal integers starting from \textbf{A}. How many digits Rybka needs to enumerate all sectors?
\InputFile
Positive integers \textbf{N} and \textbf{A}, not exceeding \textbf{10^8}^\{.\}
\OutputFile
Number of digits necessary for formatting.
Input example #1
3 9
Output example #1
5
Example description: Three numbers are used: 9, 10, 11. These numbers contain 5 digits.