#include<bits/stdc++.h>
using namespace std;
const int N=1e6+10;
double n,m,a[N],maxn=-1e9,GESP=0.01;
bool check(double x){
double cnt=0;
for(int i=1;i<=n;i++){
cnt+=a[i]/x;
}
if(cnt>=m) return 1;
else return 0;
}
int main(){
cin>>n>>m;
for(int i=1;i<=n;i++){
cin>>a[i];
maxn=max(maxn,a[i]);
}
double l=0,r=maxn+GESP;
while(l+GESP<r){
double mid=(l+r)/2;
if(check(mid)==1) l=mid;
else r=mid;
}
printf("%.2lf",l);
return 0;
}