#include<bits/stdc++.h>
using namespace std;
double l[10010];
int n,k;
double le=0,r,mid;
bool check(double k1);
int main()
{
cin.tie(0);
cout.tie(0);
ios::sync_with_stdio(false);
cin>>n>>k;
for(int i=0;i<n;i++)
{
cin>>l[i];
}
sort(l,l+n);
if(k<=n)
{
cout<<l[n-1];
exit(0);
}
else
{
r=1000000;
for(int i=1;i<=10000;i++)
{
mid=(le+r)/2;
if(check(mid))
{
le=mid;
}
else
{
r=mid;
}
}
}
cout<<fixed<<setprecision(2)<<le;
return 0;
}
bool check(double k1)
{
int ans=0;
for(int j=0;j<n;j++)
{
ans+=l[j]/k1;
}
return ans>=k;
}