Let us define a few functions over natural numbers,
sum of odd digits in decimal representation of n.
For example, and .
,
that is, sum of over all factors d of n.
For example, .
Input:
First line of the input contains 1 integers, Q, representing number of queries. Next Q line contains 1 integers each, representing n.
Output:
N lines, each line containing 1 integers, representing .
Constraints:
Same example as the one given in the problem statement.