In a galaxy far, far away, a programming contest is taking place. Your task is to choose the participants!
For each student, their knowledge of each category is given.
Choose participants for a contest and categories they will compete in, so that the sum of knowledge is maximal.
Input Specification
The first line of input contains integers
Each of the next
In each line, there are
In each line, every student will appear exactly once.
Output Specification
The first and the only output line should contain maximum sum of knowledge chosen students can have, with exactly one digit in the decimal part.
Sample Input 1
3 2 2
2 3.0 1 0.2 3 0.1
3 1.0 2 0.5 1 0.2
Sample Output 1
4.0
Explanation for Sample Output 1
There are two categories. In the first category, best student is the second one, with knowledge
Best solution is to choose students
Sample Input 2
4 4 3
4 5.0 2 4.0 3 2.0 1 1.0
2 2.0 3 1.0 1 0.5 4 0.3
4 6.0 3 5.0 2 2.0 1 0.0
1 4.0 2 3.0 4 0.6 3 0.3
Sample Output 2
15.0
Comments