Raft#237

Raft

1 second
64 megabytes
Easy (≈1000)

Using timber logs of lengths L_i (i = 1..N), it is necessary to construct rafts with logs of equal length. Find the maximum possible length of the rafts.

Input

The first line provides the values of and , and the second line provides the elements of the array .

Output

The value of .

All numbers are positive integers and do not exceed .

Examples

Example 1

Loading
Loading