#include #include #include #include #include #include #include #include #include #include #include #define rep(i, n) for (int i = 0; i < n; i++) using namespace std; typedef long long ll; using P = pair; template inline bool chmin(T& a,T b) {if (a > b) {a = b; return true;} return false;} template inline bool chmax(T& a,T b) {if (a < b) {a = b; return true;} return false;} const ll MOD = 1000000007; const int INF = 1<<29; //const ll INF = (ll)1e18 + 1; ll N, K; vector L; bool c(double x){ int sum = 0; rep(i, N){ sum += L[i] / x; } return sum >= K; } int main(){ cin >> N; L = vector(N); rep(i, N) cin >> L[i]; cin >> K; double left = 0, right = 1e10+5; rep(i, 100){ double mid = (right + left) / 2; if (c(mid)) left = mid; else right = mid; } printf("%.15f\n", left); }