Escalator#8380

Escalator

1 segundo
128 megabytes
Fácil (≈1000)

A new metro station will open in Baku soon. The escalator in the metro consists of steps, numbered with integers from to . On the steps with numbers multiple of ten, as well as on the first and last step, they write their numbers. When writing a number, the same amount of paint is spent on each written digit.

To calculate the required amount of paint, you need to know how many digits will be written. Write a program that determines how many digits will be used in the numbers of signed steps.

Entrada

One integer (1 \le n \le 10^{18}) - the number of escalator steps.

Salida

Print the total number of digits in the numbers of the signed steps.

Ejemplos

Ejemplo 1

Loading
Loading

Ejemplo 2

Loading
Loading