#include #define ll long long #define INF 1000000005 #define MOD 1000000007 #define EPS 1e-12 #define double long double #define rep(i,n) for(int i=0;i<(int)n;++i) #define each(a, b) for(auto (a): (b)) #define all(v) (v).begin(),(v).end() #define zip(v) sort(all(v)),v.erase(unique(all(v)),v.end()) #define fi first #define se second #define pb push_back #define show(x) cout<<#x<<" = "<<(x)<P; const int MAX_N = 100005; vector vec; ll K; bool possible(double cri) { ll s = 0; rep(i,vec.size()){ s += (ll)(vec[i]/cri); } if(s >= K){ return true; }else{ return false; } } int main() { cin.tie(0); ios::sync_with_stdio(false); int n; cin >> n; rep(i,n){ int a; cin >> a; vec.pb(a); } cin >> K; double l = 0,h = 1000000001; while(1){ double mid = (l+h)/2; if(abs(mid-l) < EPS){ printf("%.10f\n",mid); break; } if(possible(mid)){ l = mid; }else{ h = mid; } } return 0; }