Bob sells burgers with three different combinations, B1, B2 and B3. There are total X, Y, and Z burgers with combinations, B1, B2, and B3 respectively. Each burger has an integer value called deliciousness as follows:
Alice decides to buy K boxes containing three burgers, one from each of the combinations. The deliciousness of a box is the sum of the deliciousness of the burgers present inside it.
There are X∗Y∗Z such ways to select a box. Print the maximum total sum of deliciousness that Alice can get by buying K boxes.
Input format
Output format
For each test case, print the maximum total sum of deliciousness that Alice can get by buying K boxes in a new line.
Constraints
1≤T≤101≤X,Y,Z≤10001≤K≤min(3000,X∗Y∗Z)1≤B1i,B2j,B3k≤1000000000
For the first testcase, the combinations of burger in the boxes are (B11,B21,B32),(B11,B22,B31),(B11,B22,B32),(B12,B21,B31),(B12,B21,B32),(B12,B22,B31) and (B12,B22,B32). Thus, the total sum of deliciousness Alice can buy is 100.