To prepare for the upcoming ICPC Regional Contest, you decided to train intensively for the next $N$ days (numbered from $1$ to $N$). During the intensive training, you want to solve problems from the infamous training platform INCOJ. In INCOJ, each problem has a difficulty rating represented by a non-negative integer. For each rating, there are $10^{100}$ problems that you can pick to solve.
You want to plan a schedule for your intensive training. For day $i$, you plan to solve exactly $k_i$ problems each with difficulty rating $r_i$, such that $k_i$ and $r_i$ are non-negative integers. In a single day, it is possible that you solve $0$ problems with non-zero rating, it means you are not in the mood to solve any problems on that day. Also it is possible to solve multiple problems with difficulty $0$, the problem is too easy for you.
The following is the constraint that you made.
You define the productivity for a day as the product of the number of problems that you solve in that day and their difficulty rating. You want to maximize the total productivity across all $N$ days.
This problem is a multi-case problem. The first line consists of an integer $T$ ($1 ≤ T ≤ 100$) which represents the number of test cases.
Each test case consists of three integers $N$ $R$ $K$ ($1 ≤ N, R, K ≤ 10^9$) in a single line.
For each test case, output a single integer in a single line representing the maximum total productivity.