from math import exp, log class Solve: def __init__(self): self.N = int(input()) self.L = [int(i) for i in input().split()] self.K = int(input()) self.l, self.r = max([l/self.K for l in self.L]), min(max(self.L)+1, sum(self.L)/self.K+1) def check(self, l): k = 0 for s in (s for s in self.L if s >= l): k += s // l if k >= self.K: return True return False def solve(self): while self.r - self.l > 10**-9: # m = (self.l + self.r) / 2 m = exp((log(self.l) + log(self.r)) * 0.5) if self.check(m): self.l = m else: self.r = m return self.l print(Solve().solve())