import sequtils,strutils,math var N = stdin.readline.parseInt L = stdin.readline.split.map(parseInt) K = stdin.readline.parseInt M,m,n : float64 proc `=~`(x,y : float64):bool = if abs(x - y) < abs(x) / 10_000_000_000.0: return true else: return false M = 10e9 m = 0 while (M =~ m) == false: n = (M + m) / 2 var cnt : int for l in L: cnt += floor(l.float64 / n + 0.0000000001).int if cnt < K: M = n else: m = n echo n