import sys input = sys.stdin.readline n = int(input()) L = list(map(int, input().split())) k = int(input()) eps = 1e-9 left = max(L) / k right = sum(L) / k while right - left > max(eps, left * eps): mid = (left + right) / 2 cnt = 0 for i in range(n): cnt += int(L[i] / mid) if cnt >= k: left = mid else: right = mid print(left)