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