#BS0000026. Cắt dây (Ropes)
Cắt dây (Ropes)
Ropes
Source: Codeforces
Version: Phuoc Hung OJ Extended
Problem Statement
There are ropes of lengths . Ropes may be cut into pieces and leftovers may be discarded. Find the maximum real length such that at least pieces, each of length exactly can be obtained.
Input
The first line contains . The next lines contain .
Output
Print the maximum length. The answer is accepted if its absolute or relative error does not exceed .
Subtasks
- Subtask 1 — 20%: .
- Subtask 2 — 30%: .
- Subtask 3 — 50%: , .
Examples
Input
4 11
802
743
457
539
Output
200.5000000000
Explanation
At length , the ropes yield pieces.