import java.util.Arrays; import java.util.HashSet; import java.util.LinkedList; import java.util.Scanner; import java.util.Set; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); long[] input = new long[N]; for(int i = 0; i < N; i++){ input[i] = sc.nextLong(); } final long K = sc.nextLong(); final double EPS = 1e-10; double upper = Arrays.stream(input).max().getAsLong(); double lower = Double.MIN_VALUE; while((upper - lower) > EPS){ final double middle = (upper + lower) / 2; long count = 0; for(int i = 0; i < N; i++){ count += input[i] / middle; } if(count >= K){ lower = middle; }else{ upper = middle; } } System.out.printf("%.12f\n", lower); } }