eolymp
bolt
Try our new interface for solving problems
Problems

Escalator

Escalator

Time limit 1 second
Memory limit 128 MiB

A new metro station will open in Baku soon. The escalator in the metro consists of n steps, numbered with integers from 1 to n. On the steps with numbers multiple of ten, as well as on the first and last step, they write their numbers. When you write a number the same amount of paint goes for each 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.

Input data

One integer n (1n10^18) - the number of escalator steps.

Output data

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

Examples

Input example #1
20
Output example #1
5
Input example #2
23
Output example #2
7
Source 2018 Azerbaijan School Competition, Final Stage, May 6, Problem L