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.
n = int(input())
if n<10:
    print(n)
if n>=10 and n<100:
    print(9+2*(n-9))
if n>=100 and n<1000:
    print(189+3*(n-99))
if n>=1000 and n<10000:
    print(2889+4*(n-999))
if n>=10000 and n<100000:
    print(38889+5*(n-9999))
if n>=100000 and n<1000000:
    print(488889+6*(n-99999))
if n>=1000000 and n<10000000:
    print(5888889+7*(n-999999))
if n>=10000000 and n<100000000:
    print(68888889+8*(n-9999999))
if n>=100000000 and n<1000000000:
    print(788888889+9*(n-99999999))
if n==1000000000:
    print(8888888899)