IIKI is in great trouble. In the game called BIIKI, The Hero CIIKI gets power for per kilometer distance covered in the X-direction and power for per kilometer distance covered in the Y-direction. Initially, CIIKI is in (0,0) coordinate and can go any direction but not in any negative direction.
More formaly, he can go from (x, y) to (a, b) if and only if .
You are given the distance which will be covered by CIIKI.
What is the maximum amount of power CIIKI will get if IIKI plays optimally?
The first line contains one integer ( ) — the number of test cases. Each test case is represented by one line containing three integers , , and .
$M, N \leqslant 10^9$
$D \leqslant 10^9$
Print T numbers the maximum amount of power CIIKI can achieve.
Your answer will be considered correct if its absolute or relative error doesn't exceed .
Formally, if your answer is and judge's answer is then your answer will be considered correct if .
3 5 0 4 -1 2 3 -3 -4 3
20 6 -9