Problems
Farmer John is building a brand new,
Each cow must be assigned to work on exactly one specific floor out of the
Please compute the minimum total time in which the barn can be completed, if the cows are allocated to work on floors in an optimal fashion. Output this number rounded to the nearest integer; it is guaranteed that the solution will be more than 0.1 from the boundary between two integers.
Problem credits: Yang Liu
Input
The first line of input contains
The next
Output
Please output the minimum time required to build the barn, rounded to the nearest integer.
Example
2 5
10
4
5