Vanya got an important task — he should enumerate books in the library and label each book with its number. Each of the *n* books should be assigned with a number from 1 to *n*. Naturally, distinct books should be assigned distinct numbers.

Vanya wants to know how many digits he will have to write down as he labels the books.
The first line contains integer *n* (1 ≤ *n* ≤ 10<sup class="upper-index">9</sup>) — the number of books in the library.
# coding=utf-8
n=int(input())
if n<10:
    s=n
elif n<10**2:
    s=9+(n-9)*2
elif n<10**3:
    s=189+(n-99)*3
elif n<10**4:
    s=2889+(n-999)*4
elif n<10**5:
    s=38889+(n-999)*5
elif n<10**6:
    s=488889+(n-999)*6
elif n<10**7:
    s=5888889+(n-999)*7
elif n<10**8:
    s=68888889+(n-999)*8
elif n<10**9:
    s=788888889+(n-999)*9
elif n==10*9:
    s=8888888889
print(s)
 	  	  				 	 		 	 	 	   	   	