Bandycar is writing
page numbers for 
books. The page numbers of all books start from

. The

-th book has

pages.
Bandycar wants to know, for each book, how many digits does he need to write.
输入描述:
The first line contains an integer

.
The

-th line in the following

lines contains an integer

.
输出描述:
Output
lines, the
-th line contains the answer to the
-th book.
备注:
.