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.
def get_num_digit(lennum):
    sum_num = 0
    while lennum>1:
        sum_num += (10**lennum - 10**(lennum-1))*3
        lennum -=1
number = int(input())
num_len = len(str(number))
num_digit = 11
if(num_len>1):
    if(num_len>2):
        num_digit += 10**(num_len-1)*num_len
        num_digit +=get_num_digit(num_len-1)
        print(num_digit)
    else:
        num_digit += (number-10**(num_len-1))*2
        print(num_digit)
else:
    print(number)