#P4681. Vanya and Books
Vanya and Books
Vanya and Books
题面翻译
求1-n的正整数一共有多少位.
题目描述
Vanya got an important task — he should enumerate books in the library and label each book with its number. Each of the books should be assigned with a number from to . 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 ( ) — the number of books in the library.
输出格式
Print the number of digits needed to number all the books.
样例 #1
样例输入 #1
13
样例输出 #1
17
样例 #2
样例输入 #2
4
样例输出 #2
4
提示
Note to the first test. The books get numbers , which totals to digits.
Note to the second sample. The books get numbers , which totals to 4 digits.