eolymp
bolt
Try our new interface for solving problems

Wires

Given n segments of wire of length l1, l2, ..., ln centimeters. You must cut them to get k equal segments of as much length as possible, that is expressed with integer value in centimeters. If you can not get even k segments of length 1 cm, output 0.

Input

First row contains numbers n (1n10000) and k (1k10000). Next n lines contain integers l1, l2, ..., ln (100Li107), one number per line.

Output

Output one number - get the length of the segments.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 11
802
743
457
539
Output example #1
200