Codeforces Round 308 (Div. 2)
B
Vanya and Books
Codeforces
1200
原题
← AC →
翻译中…

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.

翻译中…

Input

翻译中…

The first line contains integer $*n*$ ($1 ≤ *n* ≤ 10^{9}$) — the number of books in the library.

翻译中…

Output

翻译中…

Print the number of digits needed to number all the books.

翻译中…

Note

翻译中…

Note to the first test. The books get numbers $1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13$, which totals to $17$ digits.

翻译中…

Note to the second sample. The books get numbers $1, 2, 3, 4$, which totals to 4 digits.

翻译中…

样例

Input #1
13
Output #1
17
InputCopy OutputCopy
Input #2
4
Output #2
4
InputCopy OutputCopy
题目信息
题号
552B
时间限制
1 s
内存限制
256 MB
标签
模拟
数学

题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。