#include <bits/stdc++.h>
using namespace std;
signed main(){
int n, k;
cin >> n >> k;
vector<int> a(n);
for(int i = 0; i < n; i++){
cin >> a[i];
}
double l = 1, r = 1e7;
double ans = 0;
for(int i = 0; i < 60; i++){
double mid = (l + r) * 0.5;
int now = 0;
for(int j = 0; j < a.size(); j++){
now += a[j] / mid;
}
// cout << now << endl;
cout << l << " " << r << endl;
if(now == k){
l = mid;
ans = max(ans, mid);
continue;
}
if(now > k){
l = mid;
}else{
r = mid;
}
}
cout << fixed << setprecision(15) << ans;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+CnVzaW5nIG5hbWVzcGFjZSBzdGQ7CnNpZ25lZCBtYWluKCl7CglpbnQgbiwgazsKCWNpbiA+PiBuID4+IGs7Cgl2ZWN0b3I8aW50PiBhKG4pOwoJZm9yKGludCBpID0gMDsgaSA8IG47IGkrKyl7CgkJY2luID4+IGFbaV07Cgl9Cglkb3VibGUgbCA9IDEsIHIgPSAxZTc7Cglkb3VibGUgYW5zID0gMDsKCWZvcihpbnQgaSA9IDA7IGkgPCA2MDsgaSsrKXsKCQlkb3VibGUgbWlkID0gKGwgKyByKSAqIDAuNTsKCQlpbnQgbm93ID0gMDsgCgkJZm9yKGludCBqID0gMDsgaiA8IGEuc2l6ZSgpOyBqKyspewoJCQlub3cgKz0gYVtqXSAvIG1pZDsgCgkJfQoJCS8vIGNvdXQgPDwgbm93IDw8IGVuZGw7CgkJY291dCA8PCBsIDw8ICIgIiA8PCByIDw8IGVuZGw7IAoJCWlmKG5vdyA9PSBrKXsKCQkJbCA9IG1pZDsKCQkJYW5zID0gbWF4KGFucywgbWlkKTsKCQkJY29udGludWU7CgkJfQoJCWlmKG5vdyA+IGspewoJCQlsID0gbWlkOwoJCX1lbHNlewoJCQlyID0gbWlkOwoJCX0KCQkKCX0KCWNvdXQgPDwgZml4ZWQgPDwgc2V0cHJlY2lzaW9uKDE1KSA8PCBhbnM7Cn0=