#include <bits/stdc++.h>

#define nl '\n'
#define ll long long int

using namespace std;

//* Use this for USACO Problems
void setIO(string s)
{
    freopen((s + ".in").c_str(), "r", stdin);
    freopen((s + ".out").c_str(), "w", stdout);
}

int n, k;
vector<int> v;

bool test(double x)
{
    int s = 0;
    for (int e : v)
        s += floor(e / x);
    return s >= k;
}

int main()
{
    // setIO("circlecross");
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    int t = 1;
    // cin >> t;

    while (t--)
    {
        cin >> n >> k;
        v.resize(n);
        for (int i = 0; i < n; i++)
        {
            cin >> v[i];
        }
        double l = 0;
        double r = 1e8;

        for (int i = 0; i < 64; i++)
        {
            double m = (l + r) / 2;
            if (test(m))
            {
                l = m;
            }
            else
            {
                r = m;
            }
        }
        cout << setprecision(20) << l << nl;
    }
}
