N = gets.to_i L = gets.split.map(&:to_i) K = gets.to_i ans = (1..(50)).inject([0.0, L.max]) {|(i, s), _| c = (s + i) / 2 if L.map {|l| (l / c).floor}.inject(:+) >= K [c, s] else [i, c] end }[0] puts ans