Find sum of all the numbers that are multiples of 10 and are less than or equal to a given number "N". (quotes for clarity and be careful of integer overflow)
 

Input
Input will start with an integer T the count of test cases, each case will have an integer N.
 

Output
Output each values, on a newline.
 

Constraints

1 ≤ T ≤ 10
1 ≤ N ≤1000000000

 

Example
Input:
1
10

Output:
10
 

Explanation
Example case 1. Only integer that is multiple 10 that is less than or equal to 10 is 10
import math
for _ in range(input()):
	n=input()
	s=int(math.floor(n//10))
	
	print ((s*(s+1))/2)*10