#0002E7

Broj

A sequence of digits is obtained by writing down decimal representations of all integers starting with 1 and continuing up to a certain number N consecutively like this: 12345678910111213141516171819202122 ... etc.
Write a program that will compute the number of digits in such a sequence.


InputThe first and only line of input contains an integer N, 1 ≤ N ≤ 100,000,000.

OutputThe first and only line of output should contain the number of digits in a sequence determined by the number given in the input.

Input
5
Output
5

Input
15
Output
21

Input
120
Output
252

Submit solution

Coming later

The grading service will be connected in a later migration step. You can inspect the task and your previous results now.