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
Output
5 Output
5Input
Output
15 Output
21Input
Output
120 Output
252Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.