Problem: Please note that the time limit for this problem is only 0.5 seconds per test.
Vladislav wrote the integers from to , inclusive, on the board. Then he replaced each integer with the sum of its digits.
What is the sum of the numbers on the board now?
For example, if then initially the numbers on the board are: Then after the replacement, the numbers become: The sum of these numbers is . Thus, for the answer is .
Input Format: The first line contains an integer () — the number of test cases.
The only line of each test case contains a single integer () — the largest number Vladislav writes.
Output Format: For each test case, output a single integer — the sum of the numbers at the end of the process.